Skip to content

Commit

Permalink
Dev Some usability changes when creating a survey
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8422 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Feb 22, 2010
1 parent fae2128 commit e8ea8a4
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
14 changes: 7 additions & 7 deletions admin/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -779,11 +779,11 @@
$surveysummary .= $clang->gT("Survey cannot be activated yet.")."<br />\n";
if ($sumcount2 == 0 && hasRight($surveyid,'define_questions'))
{
$surveysummary .= "<font class='statusentryhighlight'>[".$clang->gT("You need to add question groups")."]</font><br />";
$surveysummary .= "<span class='statusentryhighlight'>[".$clang->gT("You need to add question groups")."]</span><br />";
}
if ($sumcount3 == 0 && hasRight($surveyid,'define_questions'))
{
$surveysummary .= "<font class='statusentryhighlight'>[".$clang->gT("You need to add questions")."]</font><br />";
$surveysummary .= "<span class='statusentryhighlight'>[".$clang->gT("You need to add questions")."]</span><br />";
}
}
$surveysummary .= $surveysummary2
Expand Down Expand Up @@ -2825,15 +2825,15 @@
$newsurvey .= "<div class='tab-page'> <h2 class='tab'>".$clang->gT("General")."</h2>\n";

// * Survey Language
$newsurvey .= "<ul><li><label for='language'>".$clang->gT("Base Language:")."</label>\n"
$newsurvey .= "<ul><li><label for='language'><span class='annotationasterisk'>*</span>".$clang->gT("Base Language:")."</label>\n"
. "<select id='language' name='language'>\n";


foreach (getLanguageData() as $langkey2=>$langname)
{
$newsurvey .= "<option value='".$langkey2."'";
if ($defaultlang == $langkey2) {$newsurvey .= " selected='selected'";}
$newsurvey .= ">".$langname['description']." - ".$langname['nativedescription']."</option>\n";
$newsurvey .= ">".$langname['description']."</option>\n";
}

//Use the current user details for the default administrator name and email for this survey
Expand All @@ -2844,12 +2844,12 @@
if(empty($owner['full_name'])) $owner['full_name']=$siteadminname;
if(empty($owner['email'])) $owner['email'] = $siteadminemail;

$newsurvey .= "</select><font size='1'> ".$clang->gT("This setting cannot be changed later!")."</font>\n"
$newsurvey .= "</select><span class='annotation'> ".$clang->gT("*This setting cannot be changed later!")."</span>\n"
. "</li>\n";

$newsurvey .= ""
. "<li><label for='surveyls_title'>".$clang->gT("Title").":</label>\n"
. "<input type='text' size='82' maxlength='200' id='surveyls_title' name='surveyls_title' /><font size='1'> ".$clang->gT("(This field is mandatory.)")."</font></li>\n"
. "<li><label for='surveyls_title'><span class='annotationasterisk'>*</span>".$clang->gT("Title").":</label>\n"
. "<input type='text' size='82' maxlength='200' id='surveyls_title' name='surveyls_title' /> <span class='annotation'>".$clang->gT("*Required")."</span></li>\n"
. "<li><label for='description'>".$clang->gT("Description:")."</label>\n"
. "<textarea cols='80' rows='10' id='description' name='description'></textarea>"
. getEditor("survey-desc","description", "[".$clang->gT("Description:", "js")."]",'','','',$action)
Expand Down
2 changes: 1 addition & 1 deletion admin/scripts/admin_core.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ $(document).ready(function(){
}
});

$('#noncompletedlbl[title]').each(function() {
$('label[title]').each(function() {
if($(this).attr('title') != '')
{
$(this).qtip({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@
* File Authors:
* Anton Suprun (kpobococ at gmail dot com)
*/
FCKLang.SwitchtoolbarBtn = 'Switch Toolbar';
FCKLang.SwitchtoolbarBtn = 'Switch Toolbar';
FCKLang.LimeFitWinBtn = 'Toggle fullscreen & advanced options';
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
*
* Placholder English language file.
*/
FCKLang.LimeReplacementFieldsBtn = 'Insert/Edit LimeReplacementField' ;
FCKLang.LimeReplacementFieldsDlgTitle = 'LimeReplacementField Properties' ;
FCKLang.LimeReplacementFieldsBtn = 'Insert/edit LimeSurvey replacement field' ;
FCKLang.LimeReplacementFieldsDlgTitle = 'LimeSurvey replacement field properties' ;
10 changes: 10 additions & 0 deletions admin/styles/default/adminstyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,16 @@ textarea {
color: #E00;
}

.annotationasterisk
{
color: #E00;
}

.annotation {
font-size: 10px;
color: #E00;
}

.errortitle {
font-weight: 700;
color: #FF0F0F;
Expand Down

0 comments on commit e8ea8a4

Please sign in to comment.