Skip to content

Commit ba13f2e

Browse files
committed
Made file_edit.php page mobile-friendly.
1 parent 05988b6 commit ba13f2e

4 files changed

Lines changed: 29 additions & 162 deletions

File tree

WEB-INF/templates/file_edit2.tpl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{* Copyright (c) Anuko International Ltd. https://www.anuko.com
2+
License: See license.txt *}
3+
4+
{$forms.fileForm.open}
5+
<table class="centered-table">
6+
<tr class = "small-screen-label"><td><label for="file_name">{$i18n.label.thing_name} (*):</label></td></tr>
7+
<tr>
8+
<td class="large-screen-label"><label for="file_name">{$i18n.label.thing_name} (*):</label></td>
9+
<td class="td-with-input">{$forms.fileForm.file_name.control}</td>
10+
</tr>
11+
<tr><td><div class="small-screen-form-control-separator"></div></td></tr>
12+
<tr class = "small-screen-label"><td><label for="description">{$i18n.label.description}:</label></td></tr>
13+
<tr>
14+
<td class="large-screen-label"><label for="description">{$i18n.label.description}:</label></td>
15+
<td class="td-with-input">{$forms.fileForm.description.control}</td>
16+
</tr>
17+
<tr><td><div class="small-screen-form-control-separator"></div></td></tr>
18+
<tr><td colspan="2">{$i18n.label.required_fields}</td></tr>
19+
<tr><td><div class="small-screen-form-control-separator"></div></td></tr>
20+
</table>
21+
<div class="button-set">{$forms.fileForm.btn_save.control}</div>
22+
{$forms.fileForm.close}

client_edit1.php

Lines changed: 0 additions & 131 deletions
This file was deleted.

file_edit.php

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,6 @@
11
<?php
2-
// +----------------------------------------------------------------------+
3-
// | Anuko Time Tracker
4-
// +----------------------------------------------------------------------+
5-
// | Copyright (c) Anuko International Ltd. (https://www.anuko.com)
6-
// +----------------------------------------------------------------------+
7-
// | LIBERAL FREEWARE LICENSE: This source code document may be used
8-
// | by anyone for any purpose, and freely redistributed alone or in
9-
// | combination with other software, provided that the license is obeyed.
10-
// |
11-
// | There are only two ways to violate the license:
12-
// |
13-
// | 1. To redistribute this code in source form, with the copyright
14-
// | notice or license removed or altered. (Distributing in compiled
15-
// | forms without embedded copyright notices is permitted).
16-
// |
17-
// | 2. To redistribute modified versions of this code in *any* form
18-
// | that bears insufficient indications that the modifications are
19-
// | not the work of the original author(s).
20-
// |
21-
// | This license applies to this document only, not any other software
22-
// | that it may be combined with.
23-
// |
24-
// +----------------------------------------------------------------------+
25-
// | Contributors:
26-
// | https://www.anuko.com/time_tracker/credits.htm
27-
// +----------------------------------------------------------------------+
2+
/* Copyright (c) Anuko International Ltd. https://www.anuko.com
3+
License: See license.txt */
284

295
require_once('initialize.php');
306
import('form.Form');
@@ -84,9 +60,9 @@
8460

8561
$form = new Form('fileForm');
8662
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_file_id));
87-
$form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'file_name','style'=>'width: 250px;','value'=>$cl_name));
63+
$form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'file_name','value'=>$cl_name));
8864
$form->getElement('file_name')->setEnabled(false);
89-
$form->addInput(array('type'=>'textarea','name'=>'description','style'=>'width: 250px; height: 40px;','value'=>$cl_description));
65+
$form->addInput(array('type'=>'textarea','name'=>'description','value'=>$cl_description));
9066
$form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->get('button.save')));
9167

9268
if ($request->isPost()) {
@@ -120,5 +96,5 @@
12096
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
12197
$smarty->assign('onload', 'onLoad="document.fileForm.description.focus()"');
12298
$smarty->assign('title', $i18n->get('title.edit_file'));
123-
$smarty->assign('content_page_name', 'file_edit.tpl');
124-
$smarty->display('index.tpl');
99+
$smarty->assign('content_page_name', 'file_edit2.tpl');
100+
$smarty->display('index2.tpl');

initialize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
ini_set('display_errors', 'Off');
1414

1515
// require_once('init_auth.php');
16-
define("APP_VERSION", "1.19.23.5402");
16+
define("APP_VERSION", "1.19.23.5403");
1717
define("APP_DIR", dirname(__FILE__));
1818
define("LIBRARY_DIR", APP_DIR."/WEB-INF/lib");
1919
define("TEMPLATE_DIR", APP_DIR."/WEB-INF/templates");

0 commit comments

Comments
 (0)