mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
much better html formatting
This commit is contained in:
parent
400c8f11d1
commit
c8956a365d
|
@ -144,6 +144,7 @@ $(document).ready( function() {
|
|||
|
||||
function showKeywordForm($category, $user) { /* {{{ */
|
||||
if(!$category) {
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
|
||||
<form class="form-horizontal" action="../op/op.DefaultKeywords.php" method="post" id="form">
|
||||
|
@ -163,26 +164,33 @@ $(document).ready( function() {
|
|||
?>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
} else {
|
||||
$this->contentContainerStart();
|
||||
$owner = $category->getOwner();
|
||||
if ((!$user->isAdmin()) && ($owner->getID() != $user->getID())) return;
|
||||
?>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><?php echo getMLText("name")?>:</label>
|
||||
<div class="controls">
|
||||
<form class="form-inline formn" action="../op/op.DefaultKeywords.php" method="post">
|
||||
<?php echo createHiddenFieldWithKey('editcategory'); ?>
|
||||
<input type="hidden" name="action" value="editcategory">
|
||||
<input type="hidden" name="categoryid" value="<?php echo $category->getID()?>">
|
||||
<input name="name" class="name" type="text" value="<?php echo htmlspecialchars($category->getName()) ?>">
|
||||
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> <?php printMLText("save");?></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label"><?php echo getMLText("default_keywords")?>:</label>
|
||||
<div class="controls">
|
||||
<form class="form-horizontal form" action="../op/op.DefaultKeywords.php" method="post">
|
||||
<?php echo createHiddenFieldWithKey('editcategory'); ?>
|
||||
<input type="hidden" name="action" value="editcategory">
|
||||
<?php
|
||||
$this->formField(
|
||||
getMLText("name"),
|
||||
array(
|
||||
'element'=>'input',
|
||||
'type'=>'text',
|
||||
'name'=>'name',
|
||||
'value'=>$category->getName()
|
||||
)
|
||||
);
|
||||
$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('save'));
|
||||
?>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->contentHeading(getMLText("default_keywords"));
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<?php
|
||||
$lists = $category->getKeywordLists();
|
||||
if (count($lists) == 0)
|
||||
|
@ -190,7 +198,7 @@ $(document).ready( function() {
|
|||
else
|
||||
foreach ($lists as $list) {
|
||||
?>
|
||||
<form class="form-inline formk" style="display: inline-block;" method="post" action="../op/op.DefaultKeywords.php">
|
||||
<form class="form-inline form" style="display: inline-block;" method="post" action="../op/op.DefaultKeywords.php">
|
||||
<?php echo createHiddenFieldWithKey('editkeywords'); ?>
|
||||
<input type="Hidden" name="categoryid" value="<?php echo $category->getID()?>">
|
||||
<input type="Hidden" name="keywordsid" value="<?php echo $list["id"]?>">
|
||||
|
@ -208,8 +216,6 @@ $(document).ready( function() {
|
|||
</form>
|
||||
<br>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label"></label>
|
||||
|
@ -225,6 +231,7 @@ $(document).ready( function() {
|
|||
</div>
|
||||
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
|
@ -267,12 +274,10 @@ $(document).ready( function() {
|
|||
<?php
|
||||
$this->columnEnd();
|
||||
$this->columnStart(8);
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<div class="ajax" data-view="DefaultKeywords" data-action="form" <?php echo ($selcategoryid ? "data-query=\"categoryid=".$selcategoryid."\"" : "") ?>></div>
|
||||
</div>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->columnEnd();
|
||||
$this->rowEnd();
|
||||
$this->contentEnd();
|
||||
|
|
Loading…
Reference in New Issue
Block a user