Sha256: 19e644a5dd0447877db981b11e1b299bfd7431541e3163c728e8f42c625ce26d
Contents?: true
Size: 1.55 KB
Versions: 4
Compression:
Stored size: 1.55 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"> <ui:style> .buttons {} .signatur { float: left; } .signatur * { display: inline; margin-right: 1em; font-size: 0.8em;} .fields { clear: both;} .field { } </ui:style> <g:FlowPanel> <g:FlowPanel styleName="{style.buttons}"> <% unless options[:singleton] -%> <g:Button ui:field="newButton">New</g:Button> <g:Button ui:field="createButton">Create</g:Button> <% end -%> <g:Button ui:field="editButton">Edit</g:Button> <g:Button ui:field="saveButton">Save</g:Button> <% unless options[:singleton] -%> <g:Button ui:field="deleteButton">Delete</g:Button> <% end -%> </g:FlowPanel> <g:FlowPanel styleName="{style.signatur}"> <% unless options[:singleton] -%> <g:Label ui:field="id" /> <% end -%> <% if options[:timestamps] %> <g:Label ui:field="createdAt" /> <g:Label ui:field="updatedAt" /> <% end -%> </g:FlowPanel> <g:FlowPanel styleName="{style.fields}"> <% for attribute in attributes -%> <% if attribute.type != :has_one && attribute.type != :has_many -%> <% name = attribute.name.classify.sub(/^(.)/){ $1.downcase } -%> <g:FlowPanel styleName="{style.field}"> <g:HTML><label name="<%= name %>"><%= name.humanize %></label></g:HTML> <g:TextBox ui:field="<%= name %>" name="<%= name %>"/> </g:FlowPanel> <% end -%> <% end -%> </g:FlowPanel> </g:FlowPanel> </ui:UiBinder>
Version data entries
4 entries across 4 versions & 1 rubygems