This commit is contained in:
tianshujie
2022-03-04 09:58:49 +08:00
parent c5f19a1179
commit 35d1bc80dd
3 changed files with 7 additions and 2 deletions

View File

@@ -50,9 +50,12 @@ function loadList(type, id)
$(divClass).html($(divID).html());
}
nameBoxLabel = typeof(nameBoxLabel) == "undefined" ? '' : nameBoxLabel;
if(nameBoxLabel)
{
if(type == 'custom')
vision = typeof(vision) == "undefined" ? '' : vision;
if(type == 'custom' || (vision && vision == 'rnd'))
{
$('#nameBoxLabel').text(nameBoxLabel.custom);
}

View File

@@ -17,6 +17,7 @@
<?php js::set('moduleList', $config->todo->moduleList)?>
<?php js::set('objectsMethod', $config->todo->getUserObjectsMethod)?>
<?php js::set('nameBoxLabel', array('custom' => $lang->todo->name, 'idvalue' => $lang->todo->idvalue));?>
<?php js::set('vision', $config->vision);?>
<div id='mainContent' class='main-content'>
<div class='center-block'>
<div class='main-header'>

View File

@@ -17,6 +17,7 @@
<?php js::set('objectsMethod', $config->todo->getUserObjectsMethod)?>
<?php js::set('idvalue', $todo->idvalue);?>
<?php js::set('nameBoxLabel', array('custom' => $lang->todo->name, 'idvalue' => $lang->todo->idvalue));?>
<?php js::set('vision', $config->vision);?>
<?php if(common::checkNotCN()):?>
<style> label.col-sm-1{width:100px;} </style>
<?php endif;?>
@@ -128,7 +129,7 @@
</div>
<?php endif;?>
<div class="row form-group">
<label id='nameBoxLabel' class="col-sm-1"><?php echo $todo->type == 'custom' ? $lang->todo->name : $lang->todo->idvalue;?></label>
<label id='nameBoxLabel' class="col-sm-1"><?php echo ($todo->type == 'custom' or $config->vision == 'rnd') ? $lang->todo->name : $lang->todo->idvalue;?></label>
<div class="col-sm-10">
<div id='nameBox' class='hidden'><?php echo html::input('name', $todo->name, "class='form-control'");?></div>
<div class='input-group title-group required'>