Skip to content

Commit

Permalink
fix: remove inline css
Browse files Browse the repository at this point in the history
  • Loading branch information
modelrailroader committed Jun 5, 2024
1 parent 0a0eaf3 commit bb4baed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
3 changes: 0 additions & 3 deletions phpmyfaq/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@
$category = new Category($faqConfig);
$categories = $category->getAllCategoryIds();

$twig = new TwigWrapper(PMF_ROOT_DIR . '/assets/templates');
$template1 = $twig->loadTemplate('./add.twig');

// Twig template variables
$templateVars = [
'baseHref' => $faqSystem->getSystemUri($faqConfig),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,14 @@
value="{{ translation.input_label }}" disabled /></td>
<td>
{% if translation.input_lang != 'default' %}
<span class="badge bg-primary" id="editTranslation" data-pmf-lang="{{ translation.input_lang }}"
<button class="btn btn-primary" id="editTranslation" data-pmf-lang="{{ translation.input_lang }}"
data-pmf-inputId="{{ inputId }}" data-pmf-formId="{{ formId }}"
data-pmf-csrf="{{ csrfTokenEditTranslation }}" style="cursor: pointer">
<i aria-hidden="true" class="bi bi-pencil bi-white"></i></span>
<span class="badge bg-danger" id="deleteTranslation" data-pmf-lang="{{ translation.input_lang }}"
data-pmf-csrf="{{ csrfTokenEditTranslation }}">
<i aria-hidden="true" class="bi bi-pencil bi-white"></i></button>
<button class="btn btn-danger" id="deleteTranslation" data-pmf-lang="{{ translation.input_lang }}"
data-pmf-inputId="{{ inputId }}" data-pmf-formId="{{ formId }}"
data-pmf-csrf="{{ csrfTokenDeleteTranslation }}" data-pmf-langname="{{ translation.input_lang|languageCode }}"
style="cursor: pointer">
<i aria-hidden="true" class="bi bi-trash3 bi-white"></i></span>
data-pmf-csrf="{{ csrfTokenDeleteTranslation }}" data-pmf-langname="{{ translation.input_lang|languageCode }}">
<i aria-hidden="true" class="bi bi-trash3 bi-white"></i></button>
{% endif %}
</td>
</tr>
Expand Down

0 comments on commit bb4baed

Please sign in to comment.