Sha256: 4c3f9da784d8ad29f1d2a6594e35e18aba3295604d6f03ad25e17442b6532a16

Contents?: true

Size: 1.54 KB

Versions: 4

Compression:

Stored size: 1.54 KB

Contents

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder
  xmlns:ui="urn:ui:com.google.gwt.uibinder"
  xmlns:g="urn:import:com.google.gwt.user.client.ui"
  xmlns:d="urn:import:com.google.gwt.user.datepicker.client"
  xmlns:r="urn:import:de.mkristian.gwt.rails.editors">

  <g:FlowPanel>

    <g:FlowPanel ui:field="signature" styleName="gwt-rails-model-signature">
<% unless options[:singleton] -%>
      <g:Label>id: </g:Label>
      <g:NumberLabel ui:field="id" />
<% end -%>
<% if options[:timestamps] -%>
      <g:Label>created at: </g:Label>
      <g:DateLabel ui:field="createdAt" predefinedFormat="DATE_TIME_MEDIUM"/>
      <g:Label>updated at: </g:Label>
      <g:DateLabel ui:field="updatedAt" predefinedFormat="DATE_TIME_MEDIUM" />
<% end -%>
<% if options[:modified_by] -%>
      <g:Label>modified by: </g:Label>
      <r:UserLabel ui:field="modifiedBy" />
<% end -%>
    </g:FlowPanel>

    <g:FlowPanel styleName="gwt-rails-model-fields">
<% for attribute in attributes -%>
<%   if attribute.type != :has_one && attribute.type != :has_many -%>
<%     name = attribute.name.camelcase.sub(/^(.)/){ $1.downcase } -%>
      <g:HTMLPanel>
        <label name="<%= name %>"><%= name.underscore.humanize %></label>
<% if options[:read_only] && attribute.type == :text -%>
        <pre><g:Label ui:field="<%= name %>"/></pre>
<% else -%>
        <<%= type_widget_map[attribute.type] || 'r:IdentifyableListBox' %> ui:field="<%= name %>"/>
<% end -%>
      </g:HTMLPanel>
<%   end -%>
<% end -%>
    </g:FlowPanel>

  </g:FlowPanel>

</ui:UiBinder>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
resty-generators-0.7.3 lib/generators/resty/templates/Editor.ui.xml
resty-generators-0.7.2 lib/generators/resty/templates/Editor.ui.xml
resty-generators-0.7.1 lib/generators/resty/templates/Editor.ui.xml
resty-generators-0.7.0 lib/generators/resty/templates/Editor.ui.xml