mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
fix editing category, place submit button outside of container
This commit is contained in:
parent
a8ba6ef5a4
commit
9531568586
|
@ -144,13 +144,13 @@ $(document).ready( function() {
|
|||
|
||||
function showKeywordForm($category, $user) { /* {{{ */
|
||||
if(!$category) {
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
|
||||
<form class="form-horizontal" action="../op/op.DefaultKeywords.php" method="post" id="form">
|
||||
<?php echo createHiddenFieldWithKey('addcategory'); ?>
|
||||
<input type="hidden" name="action" value="addcategory">
|
||||
<?php
|
||||
$this->contentContainerStart();
|
||||
$this->formField(
|
||||
getMLText("name"),
|
||||
array(
|
||||
|
@ -160,11 +160,11 @@ $(document).ready( function() {
|
|||
'value'=>''
|
||||
)
|
||||
);
|
||||
$this->contentContainerEnd();
|
||||
$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('new_default_keyword_category'));
|
||||
?>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
} else {
|
||||
$owner = $category->getOwner();
|
||||
if ((!$user->isAdmin()) && ($owner->getID() != $user->getID())) return;
|
||||
|
@ -172,6 +172,7 @@ $(document).ready( function() {
|
|||
<form class="form-horizontal form" action="../op/op.DefaultKeywords.php" method="post">
|
||||
<?php echo createHiddenFieldWithKey('editcategory'); ?>
|
||||
<input type="hidden" name="action" value="editcategory">
|
||||
<input type="hidden" name="categoryid" value="<?= $category->getId() ?>">
|
||||
<?php
|
||||
$this->contentContainerStart();
|
||||
$this->formField(
|
||||
|
@ -224,7 +225,7 @@ $(document).ready( function() {
|
|||
<?php echo createHiddenFieldWithKey('newkeywords'); ?>
|
||||
<input type="Hidden" name="action" value="newkeywords">
|
||||
<input type="Hidden" name="categoryid" value="<?php echo $category->getID()?>">
|
||||
<input type="text" class="keywords form-control" name="keywords">
|
||||
<input type="text" class="keywords form-control" name="keywords">
|
||||
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> <?php printMLText("new_default_keywords");?></button>
|
||||
</form>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user