Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling Alerts & Confirm-Dialoge #386

Closed
polarpixel opened this issue Oct 6, 2014 · 6 comments
Closed

Styling Alerts & Confirm-Dialoge #386

polarpixel opened this issue Oct 6, 2014 · 6 comments
Labels

Comments

@polarpixel
Copy link
Member

Würde optisch was her machen, die Javascript Alerts mit diesem neuen Script zu stylen:
http://tristanedwards.me/sweetalert

@ghost
Copy link

ghost commented Nov 3, 2014

Mir wäre das ein bisschen too much.
Mag die schlichten jBox Dialogs ganz gerne: http://stephanwagner.me/jBox

@gharlan gharlan added the Feature Additional functionality label Nov 6, 2014
@Sioweb
Copy link
Contributor

Sioweb commented Nov 11, 2015

Oder die Bootstap Modals. Die sollten das auch tun: http://getbootstrap.com/javascript/#modals Wäre naheliegend da im Backend schon Bootstrap genutzt wird.

@staabm
Copy link
Member

staabm commented Nov 11, 2015

da wir schon bootstrap verwenden, fände ich es gut auch von dort die models zu verwenden.

ist im allgemeinen aber eher ein nice to have und kein release blocker für r5.

@polarpixel
Copy link
Member Author

Natürlich. Ich hatte nur vor einem Jahr dieses Skript gesehen und mir schien es mit minimalem Aufwand (schneller als die Bootstrap Modals) zu implementieren.
Ihr könnt das aber gern auch erstmal schließen.

@gharlan gharlan changed the title Styling Alerts Styling Alerts & Confirm-Dialoge Jan 22, 2017
@staabm
Copy link
Member

staabm commented Oct 11, 2020

bin heute wieder drüber gestolpert dass wir hier native fenster haben die nicht zum look and feel passen.

ich finde einen nativen bootstrap modal der unsere existierenden nachrichtentypen darstellen kann, wäre gut.

/**
* Returns an info message.
*
* @param string $message
* @param string $cssClass
*
* @return string
*/
public static function info($message, $cssClass = '')
{
$cssClassMessage = 'alert-info';
if ('' != $cssClass) {
$cssClassMessage .= ' ' . $cssClass;
}
return self::message($message, $cssClassMessage);
}
/**
* Returns a success message.
*
* @param string $message
* @param string $cssClass
*
* @return string
*/
public static function success($message, $cssClass = '')
{
$cssClassMessage = 'alert-success';
if ('' != $cssClass) {
$cssClassMessage .= ' ' . $cssClass;
}
return self::message($message, $cssClassMessage);
}
/**
* Returns an warning message.
*
* @param string $message
* @param string $cssClass
*
* @return string
*/
public static function warning($message, $cssClass = '')
{
$cssClassMessage = 'alert-warning';
if ('' != $cssClass) {
$cssClassMessage .= ' ' . $cssClass;
}
return self::message($message, $cssClassMessage);
}
/**
* Returns an error message.
*
* @param string $message
* @param string $cssClass
*
* @return string
*/
public static function error($message, $cssClass = '')
{
$cssClassMessage = 'alert-danger';
if ('' != $cssClass) {
$cssClassMessage .= ' ' . $cssClass;
}
return self::message($message, $cssClassMessage);
}

@gharlan
Copy link
Member

gharlan commented Feb 26, 2024

So als Einzelthema scheint es niemand zu Bearbeiten. Ich denke, man wird sich das anschauen, wenn es mal an ein Redesign geht.
Als Einzelissue schließe ich das nun aber.

@gharlan gharlan closed this as completed Feb 26, 2024
@gharlan gharlan closed this as not planned Won't fix, can't repro, duplicate, stale Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

5 participants