This repository has been archived by the owner on Apr 2, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
controll panel compatibility for pyro2.0
- Loading branch information
1 parent
4747dc3
commit 17f8236
Showing
11 changed files
with
250 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,32 @@ | ||
<h3><?php echo lang('faq_category_create_title'); ?></h3> | ||
<section class="title"> | ||
<h4><?php echo lang('faq_category_create_title'); ?></h4> | ||
</section> | ||
<section class="item"> | ||
<?php echo form_open('admin/faq/categories/create', 'id="categories" class="crud"'); ?> | ||
<ol> | ||
<li> | ||
<label for="title"><?php echo lang('faq_category_label'); ?></label> | ||
<input name="title" type="text" value="<?php echo set_value('title'); ?>" /> | ||
<span class="required-icon tooltip">*</span> | ||
</li> | ||
<li class="even"> | ||
<label for="published"><?php echo lang('faq_published_label'); ?></label> | ||
<?php echo form_dropdown('published', $publish_options, set_value('published')); ?> | ||
</li> | ||
<li> | ||
<label for="description"><?php echo lang('faq_category_description_label'); ?></label> | ||
<textarea name="description" rows="5" cols="80"><?php echo set_value('description'); ?></textarea> | ||
</li> | ||
</ol> | ||
<div class="form_inputs"> | ||
<fieldset> | ||
<ul> | ||
<li> | ||
<label for="title"><?php echo lang('faq_category_label'); ?><span class="required-icon tooltip">*</span></label> | ||
<div class="input"> | ||
<input name="title" type="text" value="<?php echo set_value('title'); ?>" /> | ||
</div> | ||
</li> | ||
<li class="even"> | ||
<label for="published"><?php echo lang('faq_published_label'); ?></label> | ||
<div class="input"> | ||
<?php echo form_dropdown('published', $publish_options, set_value('published')); ?> | ||
</div> | ||
</li> | ||
<li> | ||
<label for="description"><?php echo lang('faq_category_description_label'); ?></label> | ||
<textarea name="description" rows="5" cols="80"><?php echo set_value('description'); ?></textarea> | ||
</li> | ||
</ul> | ||
</fieldset> | ||
</div> | ||
<div class="buttons"> | ||
<?php $this->load->view('admin/partials/buttons', array('buttons' => array('save', 'cancel') )); ?> | ||
</div> | ||
<?php echo form_close(); ?> | ||
<?php echo form_close(); ?> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,33 @@ | ||
<h3><?php echo lang('faq_category_edit_title'); ?></h3> | ||
<section class="title"> | ||
<h4><?php echo lang('faq_category_edit_title'); ?></h4> | ||
</section> | ||
<section class="item"> | ||
<?php echo form_open('admin/faq/categories/edit/'.$category->id, 'id="categories" class="crud"'); ?> | ||
<ol> | ||
<li> | ||
<label for="title"><?php echo lang('faq_category_label'); ?></label> | ||
<input name="title" type="text" value="<?php echo $category->title; ?>" /> | ||
<span class="required-icon tooltip">*</span> | ||
</li> | ||
<li class="even"> | ||
<label for="published"><?php echo lang('faq_published_label'); ?></label> | ||
<?php echo form_dropdown('published', $publish_options, $category->published); ?> | ||
</li> | ||
<li> | ||
<label for="description"><?php echo lang('faq_category_description_label'); ?></label> | ||
<textarea name="description" rows="5" cols="80"><?php echo $category->description; ?></textarea> | ||
</li> | ||
</ol> | ||
<div class="form_inputs"> | ||
<fieldset> | ||
<ul> | ||
<li> | ||
<label for="title"><?php echo lang('faq_category_label'); ?><span class="required-icon tooltip">*</span></label> | ||
<div class="input"> | ||
<input name="title" type="text" value="<?php echo $category->title; ?>" /> | ||
</div> | ||
</li> | ||
<li class="even"> | ||
<label for="published"><?php echo lang('faq_published_label'); ?></label> | ||
<div class="input"> | ||
<?php echo form_dropdown('published', $publish_options, $category->published); ?> | ||
<div class="input"> | ||
</li> | ||
<li> | ||
<label for="description"><?php echo lang('faq_category_description_label'); ?></label> | ||
<textarea name="description" rows="5" cols="80"><?php echo $category->description; ?></textarea> | ||
</li> | ||
</ul> | ||
</fieldset> | ||
</div> | ||
<input type="hidden" name="category_id" value="<?php echo $category->id; ?>" /> | ||
<div class="buttons"> | ||
<?php $this->load->view('admin/partials/buttons', array('buttons' => array('save', 'cancel') )); ?> | ||
</div> | ||
<?php echo form_close(); ?> | ||
<?php echo form_close(); ?> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,45 @@ | ||
<h3><?php echo lang('faq_category_index_title'); ?></h3> | ||
|
||
<section class="title"> | ||
<h4><?php echo lang('faq_category_index_title'); ?></h4> | ||
</section> | ||
<section class="item"> | ||
<?php if(!empty($categories)): ?> | ||
<?php echo form_open('admin/faq/categories/action', 'class="crud"') ?> | ||
<table border="0" class="table-list"> | ||
<thead> | ||
<tr> | ||
<th><?php echo form_checkbox(array('name' => 'action_to_all', 'class' => 'check-all'));?></th> | ||
<th><?php echo lang('faq_category_label') ?></th> | ||
<th class="width-5"><?php echo lang('faq_published_label') ?></th> | ||
<th class="width-10"><span><?php echo lang('faq_actions_label');?></span></th> | ||
</tr> | ||
</thead> | ||
<tfoot> | ||
<tr> | ||
<td colspan="4"> | ||
<div class="inner"><?php $this->load->view('admin/partials/pagination'); ?></div> | ||
</td> | ||
</tr> | ||
</tfoot> | ||
<tbody> | ||
<?php foreach($categories as $c): ?> | ||
<tr> | ||
<td><?php echo form_checkbox('action_to[]', $c->id) ?></td> | ||
<td><?php echo $c->title; ?></td> | ||
<td><?php echo $c->published; ?></td> | ||
<td class="buttons buttons-small"> | ||
<?php echo anchor('admin/faq/categories/edit/'.$c->id, lang('faq_edit_link'), 'rel="ajax" class="button"'); ?> | ||
</td> | ||
</tr> | ||
<?php endforeach; ?> | ||
</tbody> | ||
<thead> | ||
<tr> | ||
<th><?php echo form_checkbox(array('name' => 'action_to_all', 'class' => 'check-all'));?></th> | ||
<th><?php echo lang('faq_category_label') ?></th> | ||
<th class="width-5"><?php echo lang('faq_published_label') ?></th> | ||
<th class="width-10"><span><?php echo lang('faq_actions_label');?></span></th> | ||
</tr> | ||
</thead> | ||
<tfoot> | ||
<tr> | ||
<td colspan="4"> | ||
<div class="inner"><?php $this->load->view('admin/partials/pagination'); ?></div> | ||
</td> | ||
</tr> | ||
</tfoot> | ||
<tbody> | ||
<?php foreach($categories as $c): ?> | ||
<tr> | ||
<td><?php echo form_checkbox('action_to[]', $c->id) ?></td> | ||
<td><?php echo $c->title; ?></td> | ||
<td><?php echo $c->published; ?></td> | ||
<td class="buttons buttons-small"> | ||
<?php echo anchor('admin/faq/categories/edit/'.$c->id, lang('faq_edit_link'), 'rel="ajax" class="btn orange edit button"'); ?> | ||
</td> | ||
</tr> | ||
<?php endforeach; ?> | ||
</tbody> | ||
</table> | ||
<div class="buttons"> | ||
<div class="table_action_buttons"> | ||
<?php $this->load->view('admin/partials/buttons', array('buttons' => array('delete'))); ?> | ||
</div> | ||
<?php echo form_close(); ?> | ||
<?php else: ?> | ||
<p><?php echo lang('faq_no_categories');?></p> | ||
<div class="no_data"> | ||
<?php echo lang('faq_no_categories');?> | ||
</div> | ||
<?php endif; ?> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,38 @@ | ||
<h3><?php echo lang('faq_create_title'); ?></h3> | ||
<section class="title"> | ||
<h4><?php echo lang('faq_create_title'); ?></h4> | ||
</section> | ||
<section class="item"> | ||
<?php echo form_open('admin/faq/create', 'id="faq" class="crud"'); ?> | ||
<ol> | ||
<li> | ||
<label for="question"><?php echo lang('faq_question_label'); ?></label> | ||
<input name="question" type="text" value="<?php echo set_value('question'); ?>" /> | ||
<span class="required-icon tooltip">*</span> | ||
</li> | ||
<li class="even"> | ||
<label for="published"><?php echo lang('faq_published_label'); ?></label> | ||
<?php echo form_dropdown('published', $publish_options, set_value('published')); ?> | ||
</li> | ||
<li> | ||
<label for="category"><?php echo lang('faq_category_label'); ?></label> | ||
<?php echo form_dropdown('category', $category_options, set_value('category')); ?> | ||
</li> | ||
<li> | ||
|
||
<textarea name="answer" rows="5" cols="80" class="wysiwyg-simple"><?php echo set_value('answer'); ?></textarea> | ||
</li> | ||
</ol> | ||
<div class="form_inputs"> | ||
<fieldset> | ||
<ul> | ||
<li> | ||
<label for="question"><?php echo lang('faq_question_label'); ?><span>*</span></label> | ||
<div class="input"> | ||
<input name="question" type="text" value="<?php echo set_value('question'); ?>" /> | ||
</div> | ||
</li> | ||
<li class="even"> | ||
<label for="published"><?php echo lang('faq_published_label'); ?></label> | ||
<div class="input"> | ||
<?php echo form_dropdown('published', $publish_options, set_value('published')); ?> | ||
</div> | ||
</li> | ||
<li> | ||
<label for="category"><?php echo lang('faq_category_label'); ?></label> | ||
<div class="input"> | ||
<?php echo form_dropdown('category', $category_options, set_value('category')); ?> | ||
</div> | ||
</li> | ||
<li> | ||
<label for="answer"><?php echo lang('faq_answer_label'); ?></label><br style="clear: both;"/> | ||
<textarea name="answer" rows="5" cols="80" class="wysiwyg-simple"><?php echo set_value('answer'); ?></textarea> | ||
</li> | ||
</ul> | ||
</fieldset> | ||
</div> | ||
<div class="buttons"> | ||
<?php $this->load->view('admin/partials/buttons', array('buttons' => array('save', 'cancel') )); ?> | ||
</div> | ||
<?php echo form_close(); ?> | ||
<?php echo form_close(); ?> | ||
</section> |
Oops, something went wrong.