Commit: 9a6e8a8998f1bbea413e8fc0ff90315709d720ef

Author: gwoo | Date: 2010-01-20 19:44:54 -0800
adding some missing fields back to plugins forms
diff --git a/views/plugins/add.html.php b/views/plugins/add.html.php index 11e132d..39e7a83 100644 --- a/views/plugins/add.html.php +++ b/views/plugins/add.html.php @@ -45,6 +45,24 @@ <div class="input"> <?php + echo $this->form->label('name', 'Plugin Name', array('class' => 'required')); + echo $this->form->text('name'); + if (isset($errors['name'])) { + echo '<p style="color:red">' . implode(', ', $errors['name']) . '</p>'; + } + ?> +</div> +<div class="input"> + <?php + echo $this->form->label('version', 'Version', array('class' => 'required')); + echo $this->form->text('version'); + if (isset($errors['version'])) { + echo '<p style="color:red">' . implode(', ', $errors['version']) . '</p>'; + } + ?> +</div> +<div class="input"> + <?php echo $this->form->label('summary', 'Summary', array('class' => 'required')); echo $this->form->text('summary'); if (isset($errors['summary'])) { diff --git a/views/plugins/verify.html.php b/views/plugins/verify.html.php index 89d4376..92bdd8d 100644 --- a/views/plugins/verify.html.php +++ b/views/plugins/verify.html.php @@ -14,6 +14,24 @@ echo $this->form->create($plugin, array('method' => 'POST', 'url' => $url)); ?> <div class="input"> <?php + echo $this->form->label('name', 'Plugin Name', array('class' => 'required')); + echo $this->form->text('name'); + if (isset($errors['name'])) { + echo '<p style="color:red">' . implode(', ', $errors['name']) . '</p>'; + } + ?> + </div> + <div class="input"> + <?php + echo $this->form->label('version', 'Version', array('class' => 'required')); + echo $this->form->text('version'); + if (isset($errors['version'])) { + echo '<p style="color:red">' . implode(', ', $errors['version']) . '</p>'; + } + ?> + </div> + <div class="input"> + <?php echo $this->form->label('summary', 'Summary', array('class' => 'required')); echo $this->form->text('summary'); if (isset($errors['summary'])) { @@ -51,7 +69,7 @@ echo $this->form->create($plugin, array('method' => 'POST', 'url' => $url)); </div> <div class="buttons"> <?php - echo $this->form->submit('save'); + echo $this->form->submit('save', array('name' => 'verified')); echo $this->form->submit('cancel', array('value' => 'cancel')); ?> </div>