Commit c19f213d authored by Evan Goldenberg's avatar Evan Goldenberg Committed by Francois Marier
Browse files

usability: make profile and resume text fields wider


Signed-off-by: default avatarEvan Goldenberg <evang@catalyst.net.nz>
Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
parent f257176e
......@@ -104,6 +104,9 @@ foreach ( $element_list as $element => $type ) {
$items[$element]['rows'] = 4;
$items[$element]['cols'] = 50;
}
if ($type == 'text') {
$items[$element]['size'] = 30;
}
if ($element == 'country') {
$countries = getoptions_country();
$items[$element]['options'] = array('' => get_string('nocountryselected')) + $countries;
......
......@@ -170,12 +170,14 @@ $personalinformationform = pieform(array(
'defaultvalue' => ((!empty($personalinformation))
? $personalinformation->get_composite('placeofbirth') : null),
'title' => get_string('placeofbirth', 'artefact.resume'),
'size' => 30,
),
'citizenship' => array(
'type' => 'text',
'defaultvalue' => ((!empty($personalinformation))
? $personalinformation->get_composite('citizenship') : null),
'title' => get_string('citizenship', 'artefact.resume'),
'size' => 30,
),
'visastatus' => array(
'type' => 'text',
......@@ -183,6 +185,7 @@ $personalinformationform = pieform(array(
? $personalinformation->get_composite('visastatus') : null),
'title' => get_string('visastatus', 'artefact.resume'),
'help' => true,
'size' => 30,
),
'gender' => array(
'type' => 'radio',
......@@ -199,6 +202,7 @@ $personalinformationform = pieform(array(
'defaultvalue' => ((!empty($personalinformation))
? $personalinformation->get_composite('maritalstatus') : null),
'title' => get_string('maritalstatus', 'artefact.resume'),
'size' => 30,
),
'save' => array(
'type' => 'submit',
......
......@@ -619,11 +619,13 @@ class ArtefactTypeEmploymenthistory extends ArtefactTypeResumeComposite {
'required' => true,
),
'title' => get_string('startdate', 'artefact.resume'),
'size' => 20,
'help' => true,
),
'enddate' => array(
'type' => 'text',
'title' => get_string('enddate', 'artefact.resume'),
'size' => 20,
),
'employer' => array(
'type' => 'text',
......@@ -631,10 +633,12 @@ class ArtefactTypeEmploymenthistory extends ArtefactTypeResumeComposite {
'required' => true,
),
'title' => get_string('employer', 'artefact.resume'),
'size' => 50,
),
'employeraddress' => array(
'type' => 'text',
'title' => get_string('employeraddress', 'artefact.resume'),
'size' => 50,
),
'jobtitle' => array(
'type' => 'text',
......@@ -642,6 +646,7 @@ class ArtefactTypeEmploymenthistory extends ArtefactTypeResumeComposite {
'required' => true,
),
'title' => get_string('jobtitle', 'artefact.resume'),
'size' => 50,
),
'positiondescription' => array(
'type' => 'textarea',
......@@ -707,11 +712,13 @@ class ArtefactTypeEducationhistory extends ArtefactTypeResumeComposite {
'required' => true,
),
'title' => get_string('startdate', 'artefact.resume'),
'size' => 20,
'help' => true,
),
'enddate' => array(
'type' => 'text',
'title' => get_string('enddate', 'artefact.resume'),
'size' => 20,
),
'institution' => array(
'type' => 'text',
......@@ -719,18 +726,22 @@ class ArtefactTypeEducationhistory extends ArtefactTypeResumeComposite {
'required' => true,
),
'title' => get_string('institution', 'artefact.resume'),
'size' => 50,
),
'institutionaddress' => array(
'type' => 'text',
'title' => get_string('institutionaddress', 'artefact.resume'),
'size' => 50,
),
'qualtype' => array(
'type' => 'text',
'title' => get_string('qualtype', 'artefact.resume'),
'size' => 50,
),
'qualname' => array(
'type' => 'text',
'title' => get_string('qualname', 'artefact.resume'),
'size' => 50,
),
'qualdescription' => array(
'type' => 'textarea',
......@@ -793,6 +804,7 @@ class ArtefactTypeCertification extends ArtefactTypeResumeComposite {
'required' => true,
),
'title' => get_string('date', 'artefact.resume'),
'size' => 20,
'help' => true,
),
'title' => array(
......@@ -801,6 +813,7 @@ class ArtefactTypeCertification extends ArtefactTypeResumeComposite {
'required' => true,
),
'title' => get_string('title', 'artefact.resume'),
'size' => 20,
),
'description' => array(
'type' => 'textarea',
......@@ -845,6 +858,7 @@ class ArtefactTypeBook extends ArtefactTypeResumeComposite {
),
'title' => get_string('date', 'artefact.resume'),
'help' => true,
'size' => 20,
),
'title' => array(
'type' => 'text',
......@@ -852,6 +866,7 @@ class ArtefactTypeBook extends ArtefactTypeResumeComposite {
'required' => true,
),
'title' => get_string('title', 'artefact.resume'),
'size' => 50,
),
'contribution' => array(
'type' => 'text',
......@@ -859,6 +874,7 @@ class ArtefactTypeBook extends ArtefactTypeResumeComposite {
'required' => true,
),
'title' => get_string('contribution', 'artefact.resume'),
'size' => 50,
),
'description' => array(
'type' => 'textarea',
......@@ -904,10 +920,12 @@ class ArtefactTypeMembership extends ArtefactTypeResumeComposite {
),
'title' => get_string('startdate', 'artefact.resume'),
'help' => true,
'size' => 20,
),
'enddate' => array(
'type' => 'text',
'title' => get_string('enddate', 'artefact.resume'),
'size' => 20,
),
'title' => array(
'type' => 'text',
......@@ -915,6 +933,7 @@ class ArtefactTypeMembership extends ArtefactTypeResumeComposite {
'required' => true,
),
'title' => get_string('title', 'artefact.resume'),
'size' => 50,
),
'description' => array(
'type' => 'textarea',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment