Sha256: 35137e8cd46fcd354e834818092e4d5e7ce55d9e4c617c7ef9213155b5687514
Contents?: true
Size: 1.83 KB
Versions: 10
Compression:
Stored size: 1.83 KB
Contents
<td class="adm_icon"> <%= unless @column.new_record? link_to_remote _('btn_x'), :url => column_path(@column), :method => :get else link_to_function _('btn_x'), "['add_column', 'add_column_form'].each(Element.toggle)" end %> </td> <td class="add" colspan='3'> <div id='column_errors'><%= error_messages_for(:column, :object => @column) %></div> <% if @column.new_record? %> <%= form_remote_tag(:url => columns_path ) %> <% else %> <%= form_remote_tag(:url => column_path(@column), :method => :put ) %> <% end %> <table cellspacing='0' class='edit_column'> <tr class='ruby'> <td class='label'><%= _("role")%></td> <td class='label'><%= _("type")%></td> <td class='label'><%= _("name")%></td> <td class='label'><%= _("index")%></td> </tr> <tr class='ruby'> <td><span class='constant'><%= select('column', 'role_id', Column.roles_for_form ) %></span></td> <td><span class='text'><%= select('column', 'ptype', Column::TYPES_FOR_FORM ) %></span></td> <td><%= text_field('column', 'name', :size=>15 ) %></td> <td><span class='text'><%= select_tag "column[index]", grouped_options_for_select(Column.indices_for_form, @column.index, '') %></span></td> </tr> <tr> <td class='label'><%= _("comment") %></td> <td colspan='3'> <%= text_area('column', 'comment', :rows => 2, :cols => 50) %> </td> </tr> <tr><td colspan='4'><p class='btn_validate'><input type='submit' value='<%= _('validate') %>'/></p></td></tr> </table> </form> <% if !@column.new_record? -%> <%= form_remote_tag(:url => column_path(@column), :method => :delete, :confirm => _('Are you sure you want to destroy this property definition ?') ) %> <p class='destroy'><%= _('destroy property') %> <input type='submit' value='<%= _('destroy') %>'></p> </form> <% end -%> </td>
Version data entries
10 entries across 10 versions & 1 rubygems