codeigniter-scaffold 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/codeigniter-scaffold.gemspec +1 -1
- data/lib/resources/ci_2.1.2.zip +0 -0
- data/lib/resources/view_create.php +1 -1
- metadata +1 -1
data/lib/resources/ci_2.1.2.zip
CHANGED
|
Binary file
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<input type="hidden" name="id" value="<?php echo isset($<%=@model.downcase%>)?$<%=@model.downcase%>->id:''?>"/>
|
|
5
5
|
<% @attributes.each { |f| %>
|
|
6
6
|
<p>
|
|
7
|
-
<label for="<%= f.name %>"><%= f.name %>:</label><br/><% if f.type == 'string' %>
|
|
7
|
+
<label for="<%= f.name %>"><%= f.name %>:</label><br/><% if f.type == 'string' or f.type == 'integer' %>
|
|
8
8
|
<input type="text" name="<%= f.name %>" value="<?php echo isset($<%=@model.downcase%>)?$<%=@model.downcase%>-><%= f.name %>:''?>"/><% end %>
|
|
9
9
|
<% if f.type == 'text' %>
|
|
10
10
|
<textarea name="<%= f.name %>"><?php echo isset($<%=@model.downcase%>)?$<%=@model.downcase%>-><%= f.name %>:''?></textarea><% end %>
|