Sha256: bc38ee3271ff67a822d477bdda4772d5bf51ed49460a1de9d1f4b13d1efd3b58

Contents?: true

Size: 770 Bytes

Versions: 3

Compression:

Stored size: 770 Bytes

Contents

	<h1>Create</h1>
	<?php echo form_open('<%=@model.downcase%>/save'); ?>
		<div class="error"><?php echo validation_errors(); ?></div>
		<input type="hidden" name="id" value="<?php echo isset($<%=@model.downcase%>)?$<%=@model.downcase%>->id:''?>"/>
		<% @attributes.each { |f| %>
		<p>
			<label for="<%= f.name %>"><%= f.name %>:</label><br/><% if f.type == 'string' or f.type == 'integer' %>
			<input type="text" name="<%= f.name %>" value="<?php echo isset($<%=@model.downcase%>)?$<%=@model.downcase%>-><%= f.name %>:''?>"/><% end %>
			<% if f.type == 'text' %>
			<textarea name="<%= f.name %>"><?php echo isset($<%=@model.downcase%>)?$<%=@model.downcase%>-><%= f.name %>:''?></textarea><% end %>

		</p>
		<% } %>
		<input type="submit" value="Create"/>
	</form>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
codeigniter-scaffold-1.0.0 lib/resources/view_create.php
codeigniter-scaffold-0.0.3 lib/resources/view_create.php
codeigniter-scaffold-0.0.2 lib/resources/view_create.php