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