Implement config & model upload for new projects

This commit is contained in:
Eike Foken
2011-08-08 20:29:33 +02:00
parent 4c8e0b9980
commit 8401391596
2 changed files with 73 additions and 47 deletions

View File

@@ -8,14 +8,14 @@
<div class="box">
<form method="post" name="createproject" action="<?=site_url('projects/create')?>">
<form method="post" name="createproject" action="<?=site_url('projects/create')?>" enctype="multipart/form-data">
<h3>Erforderliche Angaben zum Projekt</h3>
<ul>
<li>
<h4>Projektname <span class="req">*</span></h4>
<div>
<input type="text" name="name" class="short text" tabindex="1" value="<?=set_value('name')?>">
<input type="text" name="name" class="short text" tabindex="1" value="<?=set_value('name') == null ? $this->input->post('name') : set_value('name');?>">
<?=form_error('name')?>
</div>
</li>
@@ -23,7 +23,7 @@
<h4>Beschreibung</h4>
<label class="note">Eine Beschreibung ist hilfreich, wenn Sie dieses Projekt später für andere Mitarbeiter freigeben möchten.</label>
<div>
<textarea name="description" rows="6" cols="60" tabindex="2" class="textarea"><?=set_value('description')?></textarea>
<textarea name="description" rows="6" cols="60" tabindex="2" class="textarea"><?=set_value('description') == null ? $this->input->post('description') : set_value('description');?></textarea>
<?=form_error('description')?>
</div>
</li>
@@ -36,7 +36,7 @@
Es kann weiterhin bei jedem Versuch ein anderes Modell gewählt werden.</label>
<div>
<input type="file" class="file" name="defaultmodel" tabindex="3" value="<?=set_value('defaultmodel')?>">
<?=form_error('defaultmodel')?>
<?=$model['success'] ? '' : $this->upload->display_errors('<span class="error">', '</span>');?>
</div>
</li>
<li>
@@ -45,7 +45,7 @@
Diese Konfiguration kann bei jedem Versuch geändert werden.</label>
<div>
<input type="file" class="file" name="defaultconfig" tabindex="4" value="<?=set_value('defaultconfig')?>">
<?=form_error('defaultconfig')?>
<?=$config['success'] ? '' : $this->upload->display_errors('<span class="error">', '</span>');?>
</div>
</li>
<li>