Implement gettext for project creation form
This commit is contained in:
@@ -3,53 +3,51 @@
|
|||||||
<div id="content">
|
<div id="content">
|
||||||
|
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h2>Neues Projekt erstellen</h2>
|
<h2><?= _('Create a new project') ?></h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
|
|
||||||
|
|
||||||
<form method="post" name="createproject" action="<?=site_url('projects/create')?>" enctype="multipart/form-data">
|
<form method="post" name="createproject" action="<?=site_url('projects/create')?>" enctype="multipart/form-data">
|
||||||
<h3>Erforderliche Angaben zum Projekt</h3>
|
<h3><?= _('Required information') ?></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<h4>Projektname <span class="req">*</span></h4>
|
<h4><?= _('Project name') ?> <span class="req">*</span></h4>
|
||||||
<div>
|
<div>
|
||||||
<input type="text" name="name" class="short text" tabindex="1" value="<?=set_value('name') == '' ? $this->input->post('name') : set_value('name');?>">
|
<input type="text" name="name" class="short text" tabindex="1" value="<?=set_value('name') == '' ? $this->input->post('name') : set_value('name');?>">
|
||||||
<?=form_error('name')?>
|
<?=form_error('name')?>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<h4>Beschreibung</h4>
|
<h4><?= _('Description') ?></h4>
|
||||||
<label class="note">Eine Beschreibung ist hilfreich, wenn Sie dieses Projekt später für andere Mitarbeiter freigeben möchten.</label>
|
<label class="note"><?= _('A description is useful if you want to share this project with co-workers.') ?></label>
|
||||||
<div>
|
<div>
|
||||||
<textarea name="description" rows="6" cols="60" tabindex="2" class="textarea"><?=set_value('description') == '' ? $this->input->post('description') : set_value('description');?></textarea>
|
<textarea name="description" rows="6" cols="60" tabindex="2" class="textarea"><?=set_value('description') == '' ? $this->input->post('description') : set_value('description');?></textarea>
|
||||||
<?=form_error('description')?>
|
<?=form_error('description')?>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h3>Optionale Angaben</h3>
|
<h3><?= _('Optional information') ?></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<h4>3D-Modell</h4>
|
<h4><?= _('3D model') ?></h4>
|
||||||
<label class="note">Falls ein 3D-Modell für jeden Versuch als Standard definiert werden soll, so können Sie dieses hier hochladen.<br />
|
<label class="note"><?= _('Upload a 3D model that is used as a default for new trials. <br/>This model can be changed for every trial.')?></label>
|
||||||
Es kann weiterhin bei jedem Versuch ein anderes Modell gewählt werden.</label>
|
|
||||||
<div>
|
<div>
|
||||||
<input type="file" class="file" name="defaultmodel" tabindex="3" value="<?=set_value('defaultmodel')?>">
|
<input type="file" class="file" name="defaultmodel" tabindex="3" value="<?=set_value('defaultmodel')?>">
|
||||||
<?=$model['success'] ? '' : $this->upload->display_errors('<span class="error">', '</span>');?>
|
<?=$model['success'] ? '' : $this->upload->display_errors('<span class="error">', '</span>');?>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<h4>Standard-Konfiguration <span class="req">*</span></h4>
|
<h4><?= _('Default configuration') ?> <span class="req">*</span></h4>
|
||||||
<label class="note">Laden Sie eine Konfiguration hoch, die als Vorgabe für alle Versuche verwendet wird.<br />
|
<label class="note"><?= _('Upload a configuration that is used as a default for new trials. <br/>This configuration can be changed for every trial.')?></label>
|
||||||
Diese Konfiguration kann bei jedem Versuch geändert werden.</label>
|
|
||||||
<div>
|
<div>
|
||||||
<input type="file" class="file" name="defaultconfig" tabindex="4" value="<?=set_value('defaultconfig')?>">
|
<input type="file" class="file" name="defaultconfig" tabindex="4" value="<?=set_value('defaultconfig')?>">
|
||||||
<?=$config['success'] ? '' : $this->upload->display_errors('<span class="error">', '</span>');?>
|
<?=$config['success'] ? '' : $this->upload->display_errors('<span class="error">', '</span>');?>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="#" onclick="document.forms.createproject.submit()" class="button">Speichern</a>
|
<a href="#" onclick="document.forms.createproject.submit()" class="button"><?= _('Save') ?></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user