Sha256: 149ffa2f9c42b0cc4419c5d9fbed1355911591be2dd79bb86bb65187647df7dd

Contents?: true

Size: 1.46 KB

Versions: 52

Compression:

Stored size: 1.46 KB

Contents

<h1>New <%= @singular_name.capitalize %></h1>
<%= @disabled_fields%>
<% form_for @model , :html => { :id => 'create_form'}, :url => { :action => 'create' }  do |form| %>

  <div id='container'>
    <table>
      <% attribute_keys= @fields %>
      <% attribute_keys.length.times do |attribute_key_id|
        Rails.logger.debug("attribute_key_id:#{attribute_key_id}")
      %>
        <tr>
          <td align=RIGHT>
            <b><% value=attribute_keys[attribute_key_id]
              Rails.logger.debug("@labels:#{@labels}")
              override_label_value= @labels[value.to_sym] unless @labels.nil?
              if(override_label_value!=nil)
                label_value=override_label_value
              else
                label_value= value.to_s.humanize
              end %>
              <%= label_value %>:</b>
          </td>
          <td>
            <% Rails.logger.debug("attributekey:#{attribute_keys[attribute_key_id]}")%>
            <%if(@disabled_fields.include?(attribute_keys[attribute_key_id]))
              disabled_flag=true
            else
              disabled_flag=false
            end unless @disabled_fields.nil?
          %>
            <%= form.text_field attribute_keys[attribute_key_id], :disabled => disabled_flag  %>
          </td>
        </tr>
      <% end %>
    <% end %>
  </table>
  <div style="text-align:right;">
    <input type="submit" value="Add" />
    <%=active_ext_close_button%>
  </div>
</div>

Version data entries

52 entries across 34 versions & 1 rubygems

Version Path
erp_app-4.0.0 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.1.16 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.1.15 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.1.14 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.1.13 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.1.12 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.1.11 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.1.10 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.1.9 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.1.8 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.1.7 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.1.6 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.1.5 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.1.4 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.1.3 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.1.2 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.0.16 app/views/erp_app/desktop/scaffold/role/new.rhtml
erp_app-3.0.16 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.0.15 lib/generators/active_ext/templates/views/new.html.erb
erp_app-3.0.15 app/views/erp_app/desktop/scaffold/role/new.rhtml