Add templates and template tags for common Materialize patterns #174

Closed
opened 2020-01-14 19:18:25 +01:00 by hansegucker · 24 comments
Owner
  • Tooltips
  • Clarify usage of message boxes
  • Buttons
* [ ] Tooltips * [ ] Clarify usage of message boxes * [ ] Buttons
Owner

changed title from Add template tag for tooltip{-p-}s to make handling easier to Add template tag for tooltips to make handling easier

changed title from **Add template tag for tooltip{-p-}s to make handling easier** to **Add template tag for tooltips to make handling easier**
Owner

Can you please explain what this is about?

Can you please explain what this is about?
Owner

Ping @hansegucker

Ping @hansegucker
Author
Owner

A tag which wraps following HTML code:

<a class="btn tooltipped" data-position="bottom" data-tooltip="I am a tooltip">Hover me!</a>

Example: {% tooltipped "Foo" %}

A tag which wraps following HTML code: `<a class="btn tooltipped" data-position="bottom" data-tooltip="I am a tooltip">Hover me!</a>` Example: `{% tooltipped "Foo" %}`
Owner

<a class="btn tooltipped" data-position="bottom" data-tooltip="I am a tooltip">Hover me!</a>

Above all, this MUST use the title attribute. If materialize does not support it, it needs to be duplicated, so tooltips work without JavaScript and on non-visual display devices.

>`<a class="btn tooltipped" data-position="bottom" data-tooltip="I am a tooltip">Hover me!</a>` Above all, this MUST use the `title` attribute. If materialize does not support it, it needs to be duplicated, so tooltips work without JavaScript and on non-visual display devices.
Author
Owner

One argument more for a new template tag.

One argument more for a new template tag.
Owner

One argument more for a new template tag.

Considering we already have a button template, maybe even a materialize twmplate library.

>One argument more for a new template tag. Considering we already have a button template, maybe even a materialize twmplate library.
Author
Owner

Seems like a good idea.

Seems like a good idea.
Author
Owner

moved from AlekSIS-App-Chronos#57

moved from AlekSIS-App-Chronos#57
Author
Owner

changed title from Add template{- tag for tooltips to make handling easier-} to Add template{+s and template tags for common Materialize patterns+}

changed title from **Add template{- tag for tooltips to make handling easier-}** to **Add template{+s and template tags for common Materialize patterns+}**
Author
Owner

changed the description

changed the description
Author
Owner

Please feel free to add things to description, especially @yuha and @ZugBahnHof.

Please feel free to add things to description, especially @yuha and @ZugBahnHof.
Member

What about icons?
e.g. {% icon "add" %} and optional classes follow behind like {% icon "add" "medium blue-color" %}

What about icons? e.g. ```{% icon "add" %}``` and optional classes follow behind like ```{% icon "add" "medium blue-color" %}```
Owner

Yes. Probably the default classes for the icons should be configurable in settings.py, so we can finally switch to another icon set globally ;).

Yes. Probably the default classes for the icons should be configurable in settings.py, so we can finally switch to another icon set globally ;).
Owner

Should this be coordinated with viewflow's material.frontend, @hansegucker?

Should this be coordinated with viewflow's `material.frontend`, @hansegucker?
Author
Owner

I think we should contribute as much as possible as parts of https://github.com/viewflow/django-material.

I think we should contribute as much as possible as parts of https://github.com/viewflow/django-material.
Author
Owner

assigned to @ZugBahnHof and unassigned @hansegucker

assigned to @ZugBahnHof and unassigned @hansegucker
Author
Owner
https://docs.djangoproject.com/en/3.0/howto/custom-template-tags/#inclusion-tags
Member

Is this still our plan? I can't remember what we discussed in the mattermost

Is this still our plan? I can't remember what we discussed in the mattermost
Owner

unassigned @leuckeju

unassigned @leuckeju
Owner

removed milestone

removed milestone
Member

Connect with issue #258 ?

I would suggest writing an external django lib, something like django-material-designe that includes materialize and materialdesignicons

What's your opinion?

Connect with issue #258 ? I would suggest writing an external django lib, something like `django-material-designe` that includes `materialize` and `materialdesignicons` What's your opinion?
Owner

Obsoleted by #696

Obsoleted by #696
Owner

changed the description

changed the description
nik closed this issue 2022-07-26 13:29:39 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-Core#174
No description provided.