Skip to content

Commit

Permalink
Modify format for new Semantic style.
Browse files Browse the repository at this point in the history
  • Loading branch information
martindale committed May 28, 2015
1 parent 79be54e commit 4f880c2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions views/forms/resource-create.jade
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ mixin fieldFor( attrs , field , parentName )
+fieldFor( f , prop , f.alias || field )

else if (f && f._type == 'lookup')
.ui.category.search.icon.input(data-field-name="#{field}")
i.search.icon
//- TODO: lookup for artificial fields!
//-input.prompt(type="text", name="#{field}", placeholder="Look for #{ resources[ f._ref ].collection }...")
input.prompt(type="text", name="#{f._name}", placeholder="Look for...")
.ui.category.search(data-field-name="#{field}")
.ui.icon.input
//- TODO: lookup for artificial fields!
//-input.prompt(type="text", name="#{field}", placeholder="Look for #{ resources[ f._ref ].collection }...")
input.prompt(type="text", name="#{f._name}", placeholder="Look for...")
i.search.icon
.results
else if (f && f._type == 'textarea')
textarea(name="#{f._name}", rows="#{f._rows}", required=((f && f.required) ? 'required' : undefined ), class=((f && f.required) ? 'required' : undefined ) ) #{f._default}
Expand Down

0 comments on commit 4f880c2

Please sign in to comment.