/
_db_sys_menu_edit.html.erb
56 lines (56 loc) · 1.97 KB
/
_db_sys_menu_edit.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>
<div style="width : 440px; height : 200px;">
<% if params[:obj_id] == "new"
@menu = TrstSysMenu.new
else
@menu = find_obj(TrstSysMenu,params[:obj_id])
end -%>
<% remote_form_for :menu, @menu,
:url => {:action => 'task', :id => params[:id], :type => 'save', :obj_id => params[:obj_id]} do |f| %>
<table style="width:80%; margin:auto;">
<thead>
<tr>
<th><%=t 'activerecord.attributes.label_attribute' %></th>
<th><%=t 'activerecord.attributes.label_value' %></th>
</tr>
</thead>
<tbody>
<tr>
<td align="left"><%=t 'tasks.db_sys_menu.list.name' %></td>
<td><%= f.text_field :name %></td>
</tr>
<tr>
<td align="left"><%=t 'tasks.db_sys_menu.list.controller' %></td>
<td><%= f.text_field :controller %></td>
</tr>
<tr>
<td align="left"><%=t 'tasks.db_sys_menu.list.chapter' %></td>
<td><%= f.text_field :chapter %></td>
</tr>
<tr>
<td align="left"><%=t 'tasks.db_sys_menu.list.page' %></td>
<td><%= f.text_field :page %></td>
</tr>
<tr>
<td align="left"><%=t 'tasks.db_sys_menu.list.has_submenu' %></td>
<td align="left"><%= f.check_box :has_submenu %></td>
</tr>
<tr>
<td align="left"><%=t 'tasks.db_sys_menu.list.title' %></td>
<td><%= f.text_field :title %></td>
</tr>
<tr>
<td align="center" colspan="2">
<br/>
<input type="hidden" name="menu[updated_by]" value="<%= current_trst_user.id %>" />
<input type="submit" value="<%=t 'activerecord.attributes.crud.save' %>"/>
<input type="button" value="<%=t 'activerecord.attributes.crud.cancel' %>" onclick="Lightview.hide()"/>
</td>
</tr>
</tbody>
</table>
<% end %>
</div>