Skip to content

Commit

Permalink
target API options labels
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Oct 26, 2024
1 parent 0fb1809 commit b926799
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion php/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
$apiOptions = new ApiOptions();
$apiOptions->acceptHeaderInput->hide();
Input::setGlobalWrapper('td');
Input::setGlobalLabelClass('api-option-label');
$primaryLanguage = Locale::getPrimaryLanguage($litSettings->Locale);
$apiOptions->localeInput->selectedValue($primaryLanguage);
$apiOptions->epiphanyInput->selectedValue($litSettings->Epiphany);
Expand All @@ -153,7 +154,7 @@
echo $apiOptions->getForm(PathType::ALL_PATHS);

echo '</tr><tr>';
echo '<td colspan="5" style="text-align:center;padding:18px;"><i>' . dgettext('litexmplphp', 'or') . '</i><br /><i>' . dgettext('litexmplphp', "Choose the desired calendar from the list") . '</i></td>';
echo '<td colspan="5" style="text-align:center;padding:18px;"><i>' . dgettext('litexmplphp', "Choose a calendar") . '</i></td>';
echo '</tr><tr>';
echo '<td colspan="5" style="text-align:center;"><label>nation<br><select id="national_calendar" name="national_calendar">' . $nationalCalendarOptions . '</select></label>';
echo '<label style="margin-left: 18px;">diocese<br><select id="diocesan_calendar" name="diocesan_calendar"' . ($diocesesCount < 1 ? ' disabled' : '') . '>' . $diocesanCalendarOptions . '</select></label></td>';
Expand Down
4 changes: 2 additions & 2 deletions php/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
color: DarkBlue;
}

#ApiOptionsForm label {
#ApiOptionsForm .api-option-label {
display: block;
margin: 6px 0;
margin-bottom: 3px;
}

#ApiOptionsForm fieldset {
Expand Down

0 comments on commit b926799

Please sign in to comment.