Skip to content

Revised formatting fields Gloss Edit, useInstr, wordClass#1717

Merged
susanodd merged 5 commits intomasterfrom
1713-selecting-wordclass-but-value-not-immediately-updating
Mar 27, 2026
Merged

Revised formatting fields Gloss Edit, useInstr, wordClass#1717
susanodd merged 5 commits intomasterfrom
1713-selecting-wordclass-but-value-not-immediately-updating

Conversation

@susanodd
Copy link
Collaborator

@susanodd susanodd commented Mar 25, 2026

The table rows at the beginning of Gloss Detail View have been split into separate tables to allow specific formatting of the "main" fields at the end (below Synset, fields "useInstr" and "wordClass". These were being crowded because of three columns used in the rows above. These only need two.

In doing this I made the two fields be hard-coded. There was some weird stuff going on with "too much generic looping in the template". It's also not allowed to use "value" inside of a "td" element. (All of the gloss editing does this.)

@Woseseltops can you try to add this to ASL to see if it resolves the bug? It's on signbank-test.

I ended up only including the two "main" fields. I can't revise the formatting because there is no form for these fields. (As far as Signbank Global goes, there are only two fields here.)

@susanodd

This comment was marked as resolved.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restructures the top “Gloss Detail View” tables by splitting the initial rows into separate tables so the “main” fields at the end (notably useInstr and wordClass) can be formatted with fewer columns and more space.

Changes:

  • Split the initial combined table into multiple tables (Senses/Add sense, Synsets, then Main fields).
  • Reworked the rendering of main_fields to explicitly format useInstr and wordClass in a fixed-width table.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -1860,19 +1861,17 @@ <h2 id='modalTitleGloss'>{% trans "Add a sense" %}</h2>
</span><br>
{% endfor %}
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Synsets table row opens a <td> (line 1850) but never closes it before the </tr> (line 1863). This produces invalid HTML and can cause the following tables to be nested incorrectly depending on browser auto-correction. Add the missing </td> before closing the row.

Suggested change
{% endfor %}
{% endfor %}
</td>

Copilot uses AI. Check for mistakes.
@susanodd susanodd merged commit 763fff3 into master Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Selecting wordclass but value not immediately updating

3 participants