1. Atlassian Tutorials
  2. Untitled project
  3. confluence-notification

Commits

Colin Chauvet [Atlassian]  committed 76c027a

added a bit of CSS love

  • Participants
  • Parent commits f2014a2
  • Branches master

Comments (0)

Files changed (3)

File src/main/resources/atlassian-plugin.xml

View file
     <web-resource key="admin-resource">
         <dependency>com.atlassian.auiplugin:ajs</dependency>
         <resource type="download" name="admin.js" location="js/admin.js"/>
+        <resource type="download" name="admin.css" location="css/admin.css"/>
         <context>com.example.plugins.tutorial.confluence.notification.admin</context>
     </web-resource>
 

File src/main/resources/css/admin.css

View file
+#notification-title {
+    margin-left: 2em;
+    width: 40em;
+}
+
+#notification-message {
+    width: 40em;
+}
+
+#submit {
+    margin-top: 1em;
+    margin-bottom: 0.5em;
+}

File src/main/resources/templates/admin.vm

View file
 <form id="notification" class="aui">
     <h2>Confluence Notifier Administration</h2>
 
-    <div>
-        <label for="notification-title">Title</label>
-        <input type="text" id="notification-title" name="notification-title">
-    </div>
-    <div>
-        <label for="notification-message">Message</label>
-        <input type="text" id="notification-message" name="notification-message">
+    <div id="field-container">
+        <div>
+            <label for="notification-title">Title</label>
+            <input type="text" id="notification-title" name="notification-title">
+        </div>
+        <div>
+            <label for="notification-message">Message</label>
+            <input type="text" id="notification-message" name="notification-message">
+        </div>
     </div>
 
-
     <div>
         <input id="submit" type="submit" value="Notify">
     </div>