|
1 |
| -<!--# |
2 |
| - @version 0.3 (auto-set) |
3 |
| -#--> |
4 |
| -<!-- table locations search --> |
| 1 | +<div class="row" style="margin-right: -15px;margin-left: -15px;"> |
| 2 | + <div class="col-md-12" style="margin-bottom: 15px;"> |
| 3 | + <div class="alert" style="background: radial-gradient(circle farthest-corner at 450px 10px, #38a276, #2c742d);color: white;text-align: center;border: 0px;"> |
| 4 | + <i class="glyphicon glyphicon-exclamation-sign" style="font-weight: normal;font-size: 13pt;vertical-align: sub;margin-right: 10px;"></i> |
| 5 | + Модуль необходим для добавления и управления расположением (комнатами) в интерфейсе. Вместе с расположением будет создан объект в классе Rooms. |
| 6 | + </div> |
| 7 | + </div> |
| 8 | +</div> |
5 | 9 |
|
6 |
| -<p> |
| 10 | +<div class="row" style="margin-right: -15px;margin-left: -15px;"> |
| 11 | + <div class="col-md-12 col-sm-12 col-xs-12 text-right" style="margin-bottom: 15px;"> |
| 12 | + <div class="visible-sm visible-xs" style="margin-top: 5px;"></div> |
| 13 | + <a href="javascript://" data-toggle="modal" data-target="#modalAddLocation" class="btn btn-success"><i class="glyphicon glyphicon-plus"></i> <#LANG_ADD_NEW_LOCATION#></a> |
| 14 | + </div> |
| 15 | +</div> |
7 | 16 |
|
8 |
| -<a href="?view_mode=edit_locations" class="btn btn-default"><i class="glyphicon glyphicon-plus"></i> <#LANG_ADD_NEW_LOCATION#></a> |
| 17 | +<div class="row" style="margin-right: -15px;margin-left: -15px;"> |
| 18 | + <div class="col-sm-12" style="margin-bottom: 15px;"> |
| 19 | + <div class="table-responsive"> |
| 20 | + [#if RESULT#] |
| 21 | + <ul class="list-group"> |
| 22 | + [#begin RESULT#] |
| 23 | + <li class="list-group-item"> |
| 24 | + <span class="badge" style="background: transparent;"> |
| 25 | + [#if "<#ACTION#>"=="admin"#] |
| 26 | + <div class="btn-group"> |
| 27 | + <a class="btn btn-default btn-xs" href="?view_mode=priority_up&id=[#ID#]"><i class="glyphicon glyphicon-arrow-up"></i></a> |
| 28 | + <a class="btn btn-default btn-xs" href="?view_mode=priority_down&id=[#ID#]"><i class="glyphicon glyphicon-arrow-down"></i></a> |
9 | 29 |
|
10 |
| -</p> |
| 30 | + <a class="btn btn-warning btn-xs" href="javascript://" data-toggle="modal" data-target="#modalEditLocation[#ID#]"><i class="glyphicon glyphicon-pencil"></i> Изменить</a> |
| 31 | + <a class="btn btn-danger btn-xs" href="?view_mode=delete_locations&id=[#ID#]" onClick="return confirm('Delete record?')"><i class="glyphicon glyphicon-remove"></i> Удалить</a> |
| 32 | + </div> |
| 33 | + [#endif ACTION#] |
| 34 | + </span> |
| 35 | + [#TITLE#] <span style="color: lightgray;">(<#LANG_PRIORITY#> - [#PRIORITY#])</span> |
| 36 | + </li> |
| 37 | + |
| 38 | + <div class="modal fade" id="modalEditLocation[#ID#]" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> |
| 39 | + <div class="modal-dialog"> |
| 40 | + <div class="modal-content"> |
| 41 | + <div class="modal-header"> |
| 42 | + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
| 43 | + <h4 class="modal-title" id="myModalLabel"><#LANG_ADD_NEW_LOCATION#></h4> |
| 44 | + </div> |
| 45 | + <div class="modal-body"> |
| 46 | + <form action="?" method="post" enctype="multipart/form-data" name="frmEdit" class="form-horizontal"> |
| 47 | + <div class="form-group" style="margin-right: 0px;margin-left: 0px;"> |
| 48 | + <label class="col-lg-2 col-md-4" style="max-width: 240px;float: left;padding: 5px 10px 0px 0px;text-align: right;"><#LANG_TITLE#>:<font color="red">*</font></label> |
| 49 | + <div class="col-lg-10 col-md-8"><input type="text" class="form-control [#if ERR_TITLE#]alert-danger[#endif#]" name="title" value="[#TITLE#]" required="true"></div> |
| 50 | + </div> |
| 51 | + <div class="form-group" style="margin-right: 0px;margin-left: 0px;"> |
| 52 | + <label class="col-lg-2 col-md-4" style="max-width: 240px;float: left;padding: 5px 10px 0px 0px;text-align: right;"><#LANG_PRIORITY#>:<font color="red">*</font></label> |
| 53 | + <div class="col-lg-10 col-md-8"><input type="text" class="form-control" name="priority" value="[#PRIORITY#]"></div> |
| 54 | + </div> |
11 | 55 |
|
12 |
| -<!-- results --> |
13 |
| -[#if RESULT#] |
14 |
| -<!-- search results (list) --> |
15 |
| -<form action="?" method="post" name="frmList_locations" style="padding:0px"> |
16 |
| -<table class="table table-striped"> |
17 |
| - <thead> |
18 |
| -<tr> |
19 |
| -<th> |
20 |
| -<#LANG_TITLE#> |
21 |
| - </th> |
22 |
| - <th><#LANG_PRIORITY#></th> |
23 |
| - <th> </th> |
24 |
| - </tr> |
25 |
| - </thead> |
26 |
| -[#begin RESULT#] |
27 |
| -<tr > |
28 |
| - <td |
29 |
| - > |
30 |
| - <b> |
31 |
| - [#TITLE#] |
32 |
| - </a></b> |
33 |
| - </td> |
34 |
| - <td>[#PRIORITY#]</td> |
35 |
| - <td width="200"> |
| 56 | + <div class="form-group"> |
| 57 | + <div class="col-md-12 text-center"> |
| 58 | + <input type="submit" name="subm" class="btn btn-default btn-success" value="<#LANG_UPDATE#>"> |
| 59 | + </div> |
| 60 | + </div> |
| 61 | + <input type="hidden" name="id" value="[#ID#]"> |
| 62 | + <input type="hidden" name="view_mode" value="edit_locations"> |
| 63 | + <input type="hidden" name="edit_mode" value="<#EDIT_MODE#>"> |
| 64 | + <input type="hidden" name="mode" value="update"> |
| 65 | + </form> |
| 66 | + </div> |
| 67 | + <div class="modal-footer"> |
| 68 | + <button type="button" class="btn btn-default" data-dismiss="modal"><#LANG_CLOSE#></button> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + </div> |
| 72 | + </div> |
| 73 | + [#end RESULT#] |
| 74 | + </ul> |
| 75 | + [#else RESULT#] |
| 76 | + <p align=center> |
| 77 | + <div class="alert alert-danger"><#LANG_NO_RECORDS_FOUND#></div> |
| 78 | + </p> |
| 79 | + [#endif RESULT#] |
| 80 | + </div> |
| 81 | + </div> |
| 82 | +</div> |
36 | 83 |
|
37 |
| - [#if "<#ACTION#>"=="admin"#] |
38 |
| - <a class="btn btn-default btn-sm" href="?view_mode=priority_up&id=[#ID#]"><i class="glyphicon glyphicon-arrow-up"></i></a> |
39 |
| - <a class="btn btn-default btn-sm" href="?view_mode=priority_down&id=[#ID#]"><i class="glyphicon glyphicon-arrow-down"></i></a> |
40 |
| - |
41 |
| - <a class="btn btn-default btn-sm" href="?view_mode=edit_locations&id=[#ID#]"><i class="glyphicon glyphicon-pencil"></i></a> |
42 |
| - <a class="btn btn-default btn-sm" href="?view_mode=delete_locations&id=[#ID#]" onClick="return confirm('Delete record?')"><i class="glyphicon glyphicon-remove"></i></a> |
43 |
| - |
44 |
| - [#endif ACTION#] |
45 |
| - |
46 |
| - </td> |
47 |
| -</tr> |
48 |
| -[#end RESULT#] |
49 |
| -</table> |
50 |
| -<input type="hidden" name="data_source" value="<#DATA_SOURCE#>"> |
51 |
| -<input type="hidden" name="view_mode" value="multiple_locations"> |
52 |
| -</form> |
53 |
| -<!-- / search results (list) --> |
54 |
| -[#else RESULT#] |
55 |
| -<p align=center> |
56 |
| -<div class="alert alert-danger"><#LANG_NO_RECORDS_FOUND#></div> |
57 |
| -</p> |
58 |
| -[#endif RESULT#] |
59 |
| -<!-- / results --> |
| 84 | +<div class="modal fade" id="modalAddLocation" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> |
| 85 | + <div class="modal-dialog"> |
| 86 | + <div class="modal-content"> |
| 87 | + <div class="modal-header"> |
| 88 | + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
| 89 | + <h4 class="modal-title" id="myModalLabel"><#LANG_ADD_NEW_LOCATION#></h4> |
| 90 | + </div> |
| 91 | + <div class="modal-body"> |
| 92 | + <form action="?" method="post" enctype="multipart/form-data" name="frmEdit" class="form-horizontal"> |
| 93 | + <div class="form-group" style="margin-right: 0px;margin-left: 0px;"> |
| 94 | + <label class="col-lg-2 col-md-4" style="max-width: 240px;float: left;padding: 5px 10px 0px 0px;text-align: right;"><#LANG_TITLE#>:<font color="red">*</font></label> |
| 95 | + <div class="col-lg-10 col-md-8"><input type="text" class="form-control [#if ERR_TITLE#]alert-danger[#endif#]" name="title" value="[#TITLE#]" required="true"></div> |
| 96 | + </div> |
| 97 | + <div class="form-group" style="margin-right: 0px;margin-left: 0px;"> |
| 98 | + <label class="col-lg-2 col-md-4" style="max-width: 240px;float: left;padding: 5px 10px 0px 0px;text-align: right;"><#LANG_PRIORITY#>:<font color="red">*</font></label> |
| 99 | + <div class="col-lg-10 col-md-8"><input type="text" class="form-control" name="priority" value="[#PRIORITY#]"></div> |
| 100 | + </div> |
60 | 101 |
|
| 102 | + <div class="form-group"> |
| 103 | + <div class="col-md-12 text-center"> |
| 104 | + <input type="submit" name="subm" class="btn btn-default btn-success" value="<#LANG_ADD#>"> |
| 105 | + </div> |
| 106 | + </div> |
| 107 | + <input type="hidden" name="id" value="<#ID#>"> |
| 108 | + <input type="hidden" name="view_mode" value="edit_locations"> |
| 109 | + <input type="hidden" name="edit_mode" value="<#EDIT_MODE#>"> |
| 110 | + <input type="hidden" name="mode" value="update"> |
| 111 | + </form> |
| 112 | + </div> |
| 113 | + <div class="modal-footer"> |
| 114 | + <button type="button" class="btn btn-default" data-dismiss="modal"><#LANG_CLOSE#></button> |
| 115 | + </div> |
| 116 | + </div> |
| 117 | + </div> |
| 118 | +</div> |
0 commit comments