commit d33bf8ce59c8e308218dabf43ddf6b909dbf9c03
parent cb0b66497e435190a9d1dcefa6435b281a18ca8b
Author: Jan Dankert <devnull@localhost>
Date: Sun, 20 Nov 2011 00:04:56 +0100
Layout der Masken für Projektvarianten angepasst.
Diffstat:
3 files changed, 34 insertions(+), 4 deletions(-)
diff --git a/action/ModelAction.class.php b/action/ModelAction.class.php
@@ -77,12 +77,12 @@ class ModelAction extends Action
}
- function add()
+ function addView()
{
}
- function addmodel()
+ function addAction()
{
$model = new Model();
$model->projectid = $this->project->projectid;
@@ -104,7 +104,7 @@ class ModelAction extends Action
* Entfernen der Variante.<br>
* Es wird ein Best�tigungsdialog angezeigt.
*/
- function remove()
+ function removeView()
{
$this->model->load();
@@ -115,7 +115,7 @@ class ModelAction extends Action
/**
* Löschen des Models.
*/
- function delete()
+ function removeAction()
{
if ( $this->hasRequestVar('confirm') )
{
diff --git a/themes/default/templates/model/add.tpl.src.xml b/themes/default/templates/model/add.tpl.src.xml
@@ -0,0 +1,14 @@
+<output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.openrat.de/template ../template.xsd">
+ <header back="true"></header>
+ <form method="post">
+ <part class="line">
+ <part class="label">
+ <text key="global_name"></text>
+ </part>
+ <part class="input">
+ <input name="name" class="focus"></input>
+ </part>
+ </part>
+ </form>
+</output>+
\ No newline at end of file
diff --git a/themes/default/templates/model/edit.tpl.src.xml b/themes/default/templates/model/edit.tpl.src.xml
@@ -0,0 +1,14 @@
+<output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.openrat.de/template ../template.xsd">
+ <header views="add,remove"></header>
+ <form method="post">
+ <part class="line">
+ <part class="label">
+ <text text="GLOBAL_NAME"></text>
+ </part>
+ <part class="input">
+ <input name="name"></input>
+ </part>
+ </part>
+ </form>
+</output>+
\ No newline at end of file