app/views/main/_text.html.erb in sferik-merb-admin-0.3.4 vs app/views/main/_text.html.erb in sferik-merb-admin-0.3.6
- old
+ new
@@ -1,6 +1,11 @@
+<%
+ name = property[:name]
+ label = property[:pretty_name].capitalize
+ required = property[:nullable?]
+%>
<div>
- <%= text_area(property[:name], :cols => 80, :label => property[:pretty_name].capitalize) %>
+ <%= text_area(name, :cols => 80, :label => label) %>
<p class="help">
- <%= property[:nullable?] ? "Required." : "Optional." %>
+ <%= required ? "Required." : "Optional." %>
</p>
</div>