Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
6139b806
Commit
6139b806
authored
Nov 12, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consistent placing of modal buttons
parent
795d8e0f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
18 deletions
+22
-18
css/converse.css
css/converse.css
+2
-0
dist/converse.js
dist/converse.js
+6
-6
sass/_core.scss
sass/_core.scss
+4
-0
src/templates/add_contact_modal.html
src/templates/add_contact_modal.html
+0
-2
src/templates/chat_status_modal.html
src/templates/chat_status_modal.html
+10
-10
No files found.
css/converse.css
View file @
6139b806
...
@@ -9592,6 +9592,8 @@ body.reset {
...
@@ -9592,6 +9592,8 @@ body.reset {
background-color
:
rgba
(
0
,
0
,
0
,
0.4
);
}
background-color
:
rgba
(
0
,
0
,
0
,
0.4
);
}
#conversejs
.modal
.modal-body
p
{
#conversejs
.modal
.modal-body
p
{
padding
:
0.25rem
0
;
}
padding
:
0.25rem
0
;
}
#conversejs
.modal
.modal-footer
{
justify-content
:
flex-start
;
}
#conversejs
.selected
{
#conversejs
.selected
{
color
:
var
(
--link-color
)
!important
;
}
color
:
var
(
--link-color
)
!important
;
}
#conversejs
.circle
{
#conversejs
.circle
{
...
...
dist/converse.js
View file @
6139b806
...
@@ -100682,7 +100682,7 @@ __e(o.label_nickname) +
...
@@ -100682,7 +100682,7 @@ __e(o.label_nickname) +
__e(o.nickname) +
__e(o.nickname) +
'"\n class="form-control"\n placeholder="' +
'"\n class="form-control"\n placeholder="' +
__e(o.nickname_placeholder) +
__e(o.nickname_placeholder) +
'"/>\n </div>\n
</div>\n <div class="modal-footer">\n
<button type="submit" class="btn btn-primary">' +
'"/>\n </div>\n <button type="submit" class="btn btn-primary">' +
__e(o.label_add) +
__e(o.label_add) +
'</button>\n </div>\n </form>\n </div>\n </div>\n</div>\n';
'</button>\n </div>\n </form>\n </div>\n </div>\n</div>\n';
return __p
return __p
...
@@ -100844,7 +100844,7 @@ __p += '<!-- src/templates/chat_status_modal.html -->\n<!-- Change status Modal
...
@@ -100844,7 +100844,7 @@ __p += '<!-- src/templates/chat_status_modal.html -->\n<!-- Change status Modal
__e(o.modal_title) +
__e(o.modal_title) +
'</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
'</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
__e(o.label_close) +
__e(o.label_close) +
'">\n <span aria-hidden="true">×</span>\n </button>\n </div>\n <
form class="set-xmpp-status" id="set-xmpp-status">\n <div class="modal-body
">\n <div class="form-group">\n <div class="custom-control custom-radio">\n <input ';
'">\n <span aria-hidden="true">×</span>\n </button>\n </div>\n <
div class="modal-body">\n <form class="converse-form set-xmpp-status" id="set-xmpp-status
">\n <div class="form-group">\n <div class="custom-control custom-radio">\n <input ';
if (o.status === 'online') { ;
if (o.status === 'online') { ;
__p += ' checked="checked" ';
__p += ' checked="checked" ';
} ;
} ;
...
@@ -100868,17 +100868,17 @@ __p += ' checked="checked" ';
...
@@ -100868,17 +100868,17 @@ __p += ' checked="checked" ';
} ;
} ;
__p += '\n type="radio" id="radio-xa" value="xa" name="chat_status" class="custom-control-input">\n <label class="custom-control-label" for="radio-xa">\n <span class="far fa-circle chat-status chat-status--xa"></span> ' +
__p += '\n type="radio" id="radio-xa" value="xa" name="chat_status" class="custom-control-input">\n <label class="custom-control-label" for="radio-xa">\n <span class="far fa-circle chat-status chat-status--xa"></span> ' +
__e(o.label_xa) +
__e(o.label_xa) +
'</label>\n </div>\n </div>\n <div class="
btn-group w-100">\n <input name="status_message" type="text" class="form-control" \n
value="' +
'</label>\n </div>\n </div>\n <div class="
form-group">\n <div class="btn-group w-100">\n <input name="status_message" type="text" class="form-control" \n
value="' +
__e(o.status_message) +
__e(o.status_message) +
'" placeholder="' +
'" placeholder="' +
__e(o.placeholder_status_message) +
__e(o.placeholder_status_message) +
'">\n <span class="clear-input fa fa-times ';
'">\n
<span class="clear-input fa fa-times ';
if (!o.status_message) { ;
if (!o.status_message) { ;
__p += ' hidden ';
__p += ' hidden ';
} ;
} ;
__p += '"></span>\n
</div>\n </div>\n <div class="modal-footer"
>\n <button type="submit" class="btn btn-primary">' +
__p += '"></span>\n
</div>\n </div
>\n <button type="submit" class="btn btn-primary">' +
__e(o.label_save) +
__e(o.label_save) +
'</button>\n </
div>\n </form
>\n </div>\n </div>\n</div>\n';
'</button>\n </
form>\n </div
>\n </div>\n </div>\n</div>\n';
return __p
return __p
};
};
sass/_core.scss
View file @
6139b806
...
@@ -272,6 +272,10 @@ body.reset {
...
@@ -272,6 +272,10 @@ body.reset {
padding
:
0
.25rem
0
;
padding
:
0
.25rem
0
;
}
}
}
}
.modal-footer
{
justify-content
:
flex-start
;
}
}
}
.selected
{
.selected
{
...
...
src/templates/add_contact_modal.html
View file @
6139b806
...
@@ -21,8 +21,6 @@
...
@@ -21,8 +21,6 @@
class=
"form-control"
class=
"form-control"
placeholder=
"{{{o.nickname_placeholder}}}"
/>
placeholder=
"{{{o.nickname_placeholder}}}"
/>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
{{{o.label_add}}}
</button>
<button
type=
"submit"
class=
"btn btn-primary"
>
{{{o.label_add}}}
</button>
</div>
</div>
</form>
</form>
...
...
src/templates/chat_status_modal.html
View file @
6139b806
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
<span
aria-hidden=
"true"
>
×
</span>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</button>
</div>
</div>
<
form
class=
"set-xmpp-status"
id=
"set-xmpp-status
"
>
<
div
class=
"modal-body
"
>
<
div
class=
"modal-body
"
>
<
form
class=
"converse-form set-xmpp-status"
id=
"set-xmpp-status
"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"custom-control custom-radio"
>
<div
class=
"custom-control custom-radio"
>
<input
{[
if
(o.status =
==
'
online
')
{
]}
checked=
"checked"
{[
}
]}
<input
{[
if
(o.status =
==
'
online
')
{
]}
checked=
"checked"
{[
}
]}
...
@@ -36,16 +36,16 @@
...
@@ -36,16 +36,16 @@
<span
class=
"far fa-circle chat-status chat-status--xa"
></span>
{{{o.label_xa}}}
</label>
<span
class=
"far fa-circle chat-status chat-status--xa"
></span>
{{{o.label_xa}}}
</label>
</div>
</div>
</div>
</div>
<div
class=
"btn-group w-100"
>
<div
class=
"form-group"
>
<input
name=
"status_message"
type=
"text"
class=
"form-control"
<div
class=
"btn-group w-100"
>
value=
"{{{o.status_message}}}"
placeholder=
"{{{o.placeholder_status_message}}}"
>
<input
name=
"status_message"
type=
"text"
class=
"form-control"
<span
class=
"clear-input fa fa-times {[ if (!o.status_message) { ]} hidden {[ } ]}"
></span>
value=
"{{{o.status_message}}}"
placeholder=
"{{{o.placeholder_status_message}}}"
>
<span
class=
"clear-input fa fa-times {[ if (!o.status_message) { ]} hidden {[ } ]}"
></span>
</div>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
{{{o.label_save}}}
</button>
<button
type=
"submit"
class=
"btn btn-primary"
>
{{{o.label_save}}}
</button>
</
div
>
</
form
>
</
form
>
</
div
>
</div>
</div>
</div>
</div>
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment