Skip to content

Commit

Permalink
Dev: Replace all label + label-danger with text-danger
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Sep 15, 2016
1 parent b3cdd00 commit c827efb
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<tr id="javatbd<?php echo $myfname;?>" class="well array<?php echo $zebra; ?> answers-list radio-list" <?php echo $sDisplayStyle; ?>>
<th class="answertext" style="width: <?php echo $answerwidth;?>%;">
<?php if($error): ?>
<div class="label label-danger" role="alert">
<div class="text-danger" role="alert">
<?php echo $answertext;?>
</div>
<?php else: ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<tr id="javatbd<?php echo $myfname;?>" class="well answers-list radio-list array<?php echo $zebra; ?>" <?php echo $sDisplayStyle; ?>>
<th class="answertext <?php echo $textAlignClass;?>" style="width: <?php echo $answerwidth;?>%;">
<?php if($error): ?>
<div class="label label-danger" role="alert">
<div class="text-danger" role="alert">
<?php echo $answertext;?>
</div>
<?php else: ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<tr id="javatbd<?php echo $myfname;?>" class="well question-item answer-item dropdown-item array<?php echo $zebra; ?>">
<th class="answertext align-middle">
<?php if($error): ?>
<div class="label label-danger" role="alert">
<div class="text-danger" role="alert">
<?php echo $answertext; ?>
</div>
<?php else:?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
foreach ($aQuestions as $i=>$question): ?>
<?php if ($question['errormandatory']): ?>
<th class='text-center<?php echo ($i % 2 == 0)?' array2':' well';?>'>
<span class="label label-danger" role="alert">
<span class="text-danger" role="alert">
<?php echo $question['question']; ?>
</span >
</th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
<?php echo $ansrow['hiddenfield']; ?>

<?php if ($ansrow['showmandatoryviolation']): ?>
<div class="label label-danger">
<div class="text-danger">
<span class="fa fa-exclamation-circle" aria-hidden="true"></span>
<?php echo $ansrow['answertext']; ?>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<label for="answer<?php echo $ansrow['myfid0']; ?>">

<?php if ($ansrow['alert']): ?>
<div class="label label-danger" role="alert">
<div class="text-danger" role="alert">
<?php echo $ansrow['question']; ?>
</div>
<?php else: ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<th class="answertext text-center">
<input type="hidden" name="java<?php echo $myfname;?>" id="java<?php echo $myfname;?>" value="<?php echo $value;?>" />
<?php if($error): ?>
<div class="label label-danger" role="alert">
<div class="text-danger" role="alert">
<?php echo $answertext;?>
</div>
<?php else: ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@


<?php if($error): ?>
<div class="label label-danger" role="alert">
<div class="text-danger" role="alert">
<?php echo $answertext; ?>
</div>
<?php else: ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<tr id="javatbd<?php echo $myfname;?>" class="<?php //TODO: alternation ?> well subquestion-list questions-list array<?php echo $zebra; ?>">
<th class="answertext">
<?php if($error): ?>
<div class="label label-danger" role="alert">
<div class="text-danger" role="alert">
<?php echo $answertext; ?>
</div>
<?php else: ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<th class="answertext">
<input type="hidden" name="java<?php echo $myfname;?>" id="java<?php echo $myfname;?>" value="<?php echo $value; ?>" />
<?php if($error): ?>
<div class="label label-danger" role="alert">
<div class="text-danger" role="alert">
<?php echo $answertext;?>
</div>
<?php else: ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<tr id='javatbd<?php echo $myfname; ?>' class="question-item answer-item numeric-item text-item" <?php echo $sDisplayStyle;?>>
<td class='text-right align-middle'>
<?php if($alert):?>
<label class="control-label numeric-label label label-danger errormandatory" role="alert">
<label class="control-label numeric-label text-danger errormandatory" role="alert">
<?php echo $labelText;?>
</label> <!-- alert -->
<?php else:?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<div class="form-group row">
<?php if($alert):?>
<div class="label label-danger errormandatory" role="alert">
<div class="text-danger errormandatory" role="alert">
<?php echo $labelText;?>
</div> <!-- alert -->
<?php else:?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<?php if ($alert):?>
<!-- color code missing mandatory questions red -->
<div class="col-xs-12 col-sm-<?php echo $sLabelWidth; ?> control-label">
<div class="label label-danger errormandatory pull-right" role="alert">
<div class="text-danger errormandatory pull-right" role="alert">
<?php echo $question; ?>
</div>
</div>
Expand Down

0 comments on commit c827efb

Please sign in to comment.