mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Customer portal : Form adjustments on UserProfile brick
SVN:trunk[4069]
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace Combodo\iTop\Portal\Brick;
|
||||
|
||||
use DOMFormatException;
|
||||
use \DOMFormatException;
|
||||
use \Combodo\iTop\DesignElement;
|
||||
use \Combodo\iTop\Portal\Brick\PortalBrick;
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
});
|
||||
|
||||
{% if tIsModal is defined and tIsModal == true %}
|
||||
$('#{{ sFormId }}').closest('.modal').scrollTop(0);
|
||||
$('#{{ sFormId }}').closest('.modal').find('.modal-footer').hide();
|
||||
{% endif %}
|
||||
});
|
||||
|
||||
@@ -27,16 +27,12 @@ else
|
||||
}
|
||||
require_once APPROOT . '/application/startup.inc.php';
|
||||
|
||||
// Protection against setup in the following configuration : ITIL Ticket with Enhanced Portal selected but neither UserRequest or Incident. Which would crash the portal.
|
||||
if (!class_exists('UserRequest') && !class_exists('Incident'))
|
||||
{
|
||||
die('iTop has neither been installed with User Request nor Incident tickets. Please contact your administrator.');
|
||||
}
|
||||
|
||||
if (UserRights::GetContactId() == 0)
|
||||
{
|
||||
die(Dict::S('Portal:ErrorNoContactForThisUser'));
|
||||
}
|
||||
|
||||
$sDir = basename(__DIR__);
|
||||
define('PORTAL_MODULE_ID', $sDir);
|
||||
define('PORTAL_ID', $sDir);
|
||||
|
||||
@@ -989,20 +989,20 @@
|
||||
<!-- Optionnal tag to specify the form layout. Fields that are not positionned in the layout will be placed at the end of the form -->
|
||||
<twig>
|
||||
<!-- data-field-id attribute must be an attribute code of the class -->
|
||||
<div class="form_field" data-field-id="first_name">
|
||||
</div>
|
||||
<div class="form_field" data-field-id="name">
|
||||
</div>
|
||||
<!-- data-field-flags attribute contains flags among read_only/hidden/mandatory/must_prompt/must_change -->
|
||||
<div class="form_field" data-field-id="first_name" data-field-flags="read_only">
|
||||
</div>
|
||||
<div class="form_field" data-field-id="name" data-field-flags="read_only">
|
||||
</div>
|
||||
<div class="form_field" data-field-id="org_id" data-field-flags="read_only">
|
||||
</div>
|
||||
<div class="form_field" data-field-id="email" data-field-flags="read_only">
|
||||
</div>
|
||||
<div class="form_field" data-field-id="phone">
|
||||
</div>
|
||||
<div class="form_field" data-field-id="org_id" data-field-flags="read_only">
|
||||
<div class="form_field" data-field-id="location_id">
|
||||
</div>
|
||||
<div class="form_field" data-field-id="location_id" data-field-flags="read_only">
|
||||
</div>
|
||||
<div class="form_field" data-field-id="function" data-field-flags="read_only">
|
||||
<div class="form_field" data-field-id="function">
|
||||
</div>
|
||||
<div class="form_field" data-field-id="manager_id" data-field-flags="read_only">
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user