mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-29 11:24:11 +01:00
Added files for error messages, removed old syle sheet.
This commit is contained in:
parent
3702428369
commit
57f9a00ccf
16
ajax/messagebox.php
Normal file
16
ajax/messagebox.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2011 Thomas Tanghus <thomas@tanghus.net>
|
||||
* This file is licensed under the Affero General Public License version 3 or
|
||||
* later.
|
||||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
require_once('../../../lib/base.php');
|
||||
$l10n = new OC_L10N('contacts');
|
||||
OC_JSON::checkLoggedIn();
|
||||
OC_JSON::checkAppEnabled('contacts');
|
||||
|
||||
$output = new OC_TEMPLATE("contacts", "part.messagebox");
|
||||
$output -> printpage();
|
||||
?>
|
@ -1,270 +0,0 @@
|
||||
/* -------------------------------------------------------------------------------------------------
|
||||
|
||||
ownCloud changes: search for OWNCLOUD
|
||||
|
||||
Based on formtastic style sheet
|
||||
This stylesheet forms part of the Formtastic Rails Plugin
|
||||
(c) 2008-2011 Justin French
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
/* NORMALIZE AND RESET - obviously inspired by Yahoo's reset.css, but scoped to just .formtastic
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
.formtastic,
|
||||
.formtastic ul,
|
||||
.formtastic ol,
|
||||
.formtastic li,
|
||||
.formtastic fieldset,
|
||||
.formtastic legend,
|
||||
/*.formtastic input,
|
||||
.formtastic textarea,
|
||||
.formtastic select, COMMENTED BY OWNCLOUD */
|
||||
.formtastic p {
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
.formtastic fieldset {
|
||||
border:0;
|
||||
}
|
||||
|
||||
.formtastic em,
|
||||
.formtastic strong {
|
||||
font-style:normal;
|
||||
font-weight:normal;
|
||||
}
|
||||
|
||||
.formtastic ol,
|
||||
.formtastic ul {
|
||||
list-style:none;
|
||||
}
|
||||
|
||||
.formtastic abbr,
|
||||
.formtastic acronym {
|
||||
border:0;
|
||||
font-variant:normal;
|
||||
}
|
||||
|
||||
/*.formtastic input,
|
||||
.formtastic textarea {
|
||||
font-family:sans-serif;
|
||||
font-size:inherit;
|
||||
font-weight:inherit;
|
||||
}
|
||||
|
||||
.formtastic input,
|
||||
.formtastic textarea,
|
||||
.formtastic select {
|
||||
font-size:100%;
|
||||
} COMMENTED BY OWNCLOUD */
|
||||
|
||||
.formtastic legend {
|
||||
white-space:normal;
|
||||
color:#000;
|
||||
}
|
||||
|
||||
/* SEMANTIC ERRORS
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
.formtastic .errors {
|
||||
color:#cc0000;
|
||||
margin:0.5em 0 1.5em 25%;
|
||||
list-style:square;
|
||||
}
|
||||
|
||||
.formtastic .errors li {
|
||||
padding:0;
|
||||
border:none;
|
||||
display:list-item;
|
||||
}
|
||||
|
||||
|
||||
/* BUTTONS
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
.formtastic .buttons {
|
||||
overflow:hidden; /* clear containing floats */
|
||||
padding-left:25%;
|
||||
}
|
||||
|
||||
.formtastic .button {
|
||||
float:left;
|
||||
padding-right:0.5em;
|
||||
border:none; /* ADDED BY OWNCLOUD */
|
||||
}
|
||||
|
||||
|
||||
/* INPUTS
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
.formtastic .inputs {
|
||||
padding:0.5em 0; /* padding and negative margin juggling is for Firefox */
|
||||
margin-top:-0.5em;
|
||||
margin-bottom:1em;
|
||||
}
|
||||
|
||||
.formtastic .input {
|
||||
}
|
||||
|
||||
|
||||
/* LEFT ALIGNED LABELS
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
.formtastic .input .label {
|
||||
display:block;
|
||||
width:25%;
|
||||
float:left;
|
||||
padding-top:.2em;
|
||||
}
|
||||
|
||||
.formtastic .fragments .label,
|
||||
.formtastic .choices .label {
|
||||
position:absolute;
|
||||
width:95%;
|
||||
left:0px;
|
||||
}
|
||||
|
||||
.formtastic .fragments .label label,
|
||||
.formtastic .choices .label label {
|
||||
position:absolute;
|
||||
}
|
||||
|
||||
/* NESTED FIELDSETS AND LEGENDS (radio, check boxes and date/time inputs use nested fieldsets)
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
.formtastic .choices {
|
||||
position:relative;
|
||||
}
|
||||
|
||||
.formtastic .choices-group {
|
||||
float:left;
|
||||
width:74%;
|
||||
margin:0;
|
||||
padding:0 0 0 25%;
|
||||
}
|
||||
|
||||
.formtastic .choice {
|
||||
padding:0;
|
||||
border:0;
|
||||
}
|
||||
|
||||
|
||||
/* INLINE HINTS
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
.formtastic .input .inline-hints {
|
||||
color:#666;
|
||||
margin:0.5em 0 0 25%;
|
||||
}
|
||||
|
||||
|
||||
/* INLINE ERRORS
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
.formtastic .inline-errors {
|
||||
color:#cc0000;
|
||||
margin:0.5em 0 0 25%;
|
||||
}
|
||||
|
||||
.formtastic .errors {
|
||||
color:#cc0000;
|
||||
margin:0.5em 0 0 25%;
|
||||
list-style:square;
|
||||
}
|
||||
|
||||
.formtastic .errors li {
|
||||
padding:0;
|
||||
border:none;
|
||||
display:list-item;
|
||||
}
|
||||
|
||||
|
||||
/* STRING, NUMERIC, PASSWORD, EMAIL, URL, PHONE, SEARCH (ETC) OVERRIDES
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
.formtastic .stringish input {
|
||||
width:72%;
|
||||
}
|
||||
|
||||
.formtastic .stringish input[size] {
|
||||
width:auto;
|
||||
max-width:72%;
|
||||
}
|
||||
|
||||
|
||||
/* TEXTAREA OVERRIDES
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
.formtastic .text textarea {
|
||||
width:72%;
|
||||
}
|
||||
|
||||
.formtastic .text textarea[cols] {
|
||||
width:auto;
|
||||
max-width:72%;
|
||||
}
|
||||
|
||||
|
||||
/* HIDDEN OVERRIDES
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
.formtastic .hidden {
|
||||
display:none;
|
||||
}
|
||||
|
||||
|
||||
/* BOOLEAN LABELS
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
.formtastic .boolean label {
|
||||
padding-left:25%;
|
||||
display:block;
|
||||
}
|
||||
|
||||
|
||||
/* CHOICE GROUPS
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
.formtastic .choices-group {
|
||||
margin-bottom:-0.5em;
|
||||
}
|
||||
|
||||
.formtastic .choice {
|
||||
margin:0.1em 0 0.5em 0;
|
||||
}
|
||||
|
||||
.formtastic .choice label {
|
||||
float:none;
|
||||
width:100%;
|
||||
line-height:100%;
|
||||
padding-top:0;
|
||||
margin-bottom:0.6em;
|
||||
}
|
||||
|
||||
|
||||
/* ADJUSTMENTS FOR INPUTS INSIDE LABELS (boolean input, radio input, check_boxes input)
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
.formtastic .choice label input,
|
||||
.formtastic .boolean label input {
|
||||
margin:0 0.3em 0 0.1em;
|
||||
line-height:100%;
|
||||
}
|
||||
|
||||
|
||||
/* FRAGMENTED INPUTS (DATE/TIME/DATETIME)
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
.formtastic .fragments {
|
||||
position:relative;
|
||||
}
|
||||
|
||||
.formtastic .fragments-group {
|
||||
float:left;
|
||||
width:74%;
|
||||
margin:0;
|
||||
padding:0 0 0 25%;
|
||||
}
|
||||
|
||||
.formtastic .fragment {
|
||||
float:left;
|
||||
width:auto;
|
||||
margin:0 .3em 0 0;
|
||||
padding:0;
|
||||
border:0;
|
||||
}
|
||||
|
||||
.formtastic .fragment label {
|
||||
display:none;
|
||||
}
|
||||
|
||||
.formtastic .fragment label input {
|
||||
display:inline;
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
7
templates/part.messagebox.php
Normal file
7
templates/part.messagebox.php
Normal file
@ -0,0 +1,7 @@
|
||||
<div id="messagebox">
|
||||
<table width="100%" style="border: 0;">
|
||||
<tr>
|
||||
<th id="messagebox_msg"></th>
|
||||
</tr>
|
||||
</table>
|
||||
</di>
|
Loading…
Reference in New Issue
Block a user