Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: added right content subview in label for code readability
- Loading branch information
LouisGac
committed
Dec 16, 2015
1 parent
a37c96a
commit 1929241
Showing
2 changed files
with
88 additions
and
82 deletions.
There are no files selected for viewing
78 changes: 78 additions & 0 deletions
78
application/views/admin/labels/_labelviewrightcontent_view.php
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<div class="row"> | ||
<div class="col-sm-12 content-right text-center"> | ||
<div class="panel-group" id="accordion" role="tablist" style="margin-top: 20px"> | ||
<div class="panel panel-default" id="up_resmgmt"> | ||
|
||
<!-- Uploaded resources management --> | ||
<div class="panel-heading" role="tab" id="headingOne"> | ||
<h4 class="panel-title"> | ||
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> | ||
<?php eT("Uploaded resources management"); ?> | ||
</a> | ||
</h4> | ||
</div> <!-- headingOne --> | ||
|
||
<!-- Body --> | ||
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne"> | ||
<div class="panel-body"> | ||
<div id="upload-form-container"> | ||
|
||
<!-- Form browselabelresources --> | ||
<?php echo CHtml::form('third_party/kcfinder/browse.php?language='.sTranslateLangCode2CK(App()->language), 'get', array('id'=>'browselabelresources','class'=>'form30','name'=>'browselabelresources','target'=>'_blank')); ?> | ||
<ul class="list-unstyled"> | ||
|
||
<!-- Browse uploaded resources --> | ||
<li> | ||
<label> </label> | ||
<div class="col-sm-6"> | ||
<?php echo CHtml::dropDownList('type', 'files', array('files' => gT('Files'), 'flash' => gT('Flash'), 'images' => gT('Images')), array('class'=>' form-control input-lg ') ); ?> | ||
</div> | ||
<div class="col-sm-5"> | ||
<input type='submit' class="btn btn-default" value="<?php eT("Browse uploaded resources") ?>" /> | ||
</div> | ||
</li> | ||
|
||
<!-- Export resources as ZIP archive --> | ||
<li> | ||
<label> </label> | ||
<input class="btn btn-default" type='button'<?php echo hasResources($lid, 'label') === false ? ' disabled="disabled"' : '' ?> | ||
onclick='window.open("<?php echo $this->createUrl("/admin/export/sa/resources/export/label/lid/$lid"); ?>", "_blank")' | ||
value="<?php eT("Export resources as ZIP archive") ?>" /> | ||
</li> | ||
</ul> | ||
<input type='hidden' name='lid' value='<?php echo $lid; ?>' /> | ||
</form> | ||
|
||
<!-- Form importlabelresources --> | ||
<?php echo CHtml::form(array('admin/labels/sa/importlabelresources'), 'post', array( | ||
'id'=>'importlabelresources', | ||
'class'=>'form30', | ||
'name'=>'importlabelresources', | ||
'enctype'=>'multipart/form-data', | ||
'onsubmit'=>'return validatefilename(this, "'.gT('Please select a file to import!', 'js').'");')); ?> | ||
<ul class="list-unstyled"> | ||
|
||
<!-- Select ZIP file --> | ||
<li> | ||
<label for='the_file'><?php eT("Select ZIP file:") ?></label> | ||
<input id='the_file' name="the_file" type="file" /> | ||
</li> | ||
|
||
<!-- Import resources ZIP archive --> | ||
<li> | ||
<label> </label> | ||
<input class="btn btn-default" type='button' value='<?php eT("Import resources ZIP archive") ?>' | ||
<?php echo !function_exists("zip_open") ? "onclick='alert(\"" . gT("zip library not supported by PHP, Import ZIP Disabled", "js") . "\");'" : "onclick='if (validatefilename(this.form,\"" . gT('Please select a file to import!', 'js') . "\")) { this.form.submit();}'" ?>/> | ||
</li> | ||
</ul> | ||
|
||
<input type='hidden' name='lid' value='<?php echo $lid; ?>' /> | ||
<input type='hidden' name='action' value='importlabelresources' /> | ||
</form> | ||
</div> <!-- upload-form-container --> | ||
</div> <!-- panel-body --> | ||
</div> <!-- collapseOne --> | ||
</div> <!-- up_resmgmt --> | ||
</div> <!-- accordion --> | ||
</div> <!-- content-right --> | ||
</div> <!--row --> |
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