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) { /* {{{ */
|
function showKeywordForm($category, $user) { /* {{{ */
|
||||||
if(!$category) {
|
if(!$category) {
|
||||||
$this->contentContainerStart();
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form class="form-horizontal" action="../op/op.DefaultKeywords.php" method="post" id="form">
|
<form class="form-horizontal" action="../op/op.DefaultKeywords.php" method="post" id="form">
|
||||||
<?php echo createHiddenFieldWithKey('addcategory'); ?>
|
<?php echo createHiddenFieldWithKey('addcategory'); ?>
|
||||||
<input type="hidden" name="action" value="addcategory">
|
<input type="hidden" name="action" value="addcategory">
|
||||||
<?php
|
<?php
|
||||||
|
$this->contentContainerStart();
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("name"),
|
getMLText("name"),
|
||||||
array(
|
array(
|
||||||
|
@ -160,11 +160,11 @@ $(document).ready( function() {
|
||||||
'value'=>''
|
'value'=>''
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
$this->contentContainerEnd();
|
||||||
$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('new_default_keyword_category'));
|
$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('new_default_keyword_category'));
|
||||||
?>
|
?>
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
$this->contentContainerEnd();
|
|
||||||
} else {
|
} else {
|
||||||
$owner = $category->getOwner();
|
$owner = $category->getOwner();
|
||||||
if ((!$user->isAdmin()) && ($owner->getID() != $user->getID())) return;
|
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">
|
<form class="form-horizontal form" action="../op/op.DefaultKeywords.php" method="post">
|
||||||
<?php echo createHiddenFieldWithKey('editcategory'); ?>
|
<?php echo createHiddenFieldWithKey('editcategory'); ?>
|
||||||
<input type="hidden" name="action" value="editcategory">
|
<input type="hidden" name="action" value="editcategory">
|
||||||
|
<input type="hidden" name="categoryid" value="<?= $category->getId() ?>">
|
||||||
<?php
|
<?php
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
$this->formField(
|
$this->formField(
|
||||||
|
@ -224,7 +225,7 @@ $(document).ready( function() {
|
||||||
<?php echo createHiddenFieldWithKey('newkeywords'); ?>
|
<?php echo createHiddenFieldWithKey('newkeywords'); ?>
|
||||||
<input type="Hidden" name="action" value="newkeywords">
|
<input type="Hidden" name="action" value="newkeywords">
|
||||||
<input type="Hidden" name="categoryid" value="<?php echo $category->getID()?>">
|
<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>
|
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> <?php printMLText("new_default_keywords");?></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user