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

DEVELOPER-1047 (UX) #6

Open
wants to merge 14 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var gulp = require('gulp'),
jade = require('gulp-jade');

function errorLog(error) {
console.error.bind(error);
console.log(error);
this.emit('end');
}

Expand Down
6 changes: 0 additions & 6 deletions src/form.jade
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ html(lang="en")
include partials/doap-entry.jade
script(id="rdf_template" type="text/html")
include templates/rdf.mst
script(id="version_template" type="text/html")
include templates/version.mst
script(id="spec_template" type="text/html")
include templates/spec.mst
script(id="account_template" type="text/html")
include templates/account.mst
script(src="//cdnjs.cloudflare.com/ajax/libs/mustache.js/0.7.2/mustache.min.js")
script(src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.2/highlight.min.js")
script(src="scripts/all.js")
Expand Down
18 changes: 18 additions & 0 deletions src/partials/accounts.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.small-6.columns
label Service
small required
select#account-homepage
option(value="") Select One
option(value="https://www.twitter.com") Twitter
option(value="https://plus.google.com") Google Plus
option(value="https://www.facebook.com") FaceBook
option(value="https://www.linkedin.com") LinkedIn
label Account Name
small required
input#account-name(type="text", name="accountName", required="")
a#addAccount.add.button(href="#") Add Account
.small-6.columns
label Accounts Added
select.accounts-container#accounts-container(name="accounts-container", multiple="")
button#removeAccount.remove.button(type="button") Remove

84 changes: 30 additions & 54 deletions src/partials/doap-entry.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ form#doap-form(data-abide="ajax")
.large-12.columns
.row
h1 DOAP Generator
ul.tabs(data-tab="", role="tablist")
ul.tabs(role="tablist")
li.tab-title.active(role="presentational")
a(href="#panel-1", role="tab" aria-selected="true", controls="panel-1") Project
a(href="#project-panel", role="tabbutton" aria-selected="true") Project
li.tab-title(role="presentational")
a(href="#panel-2", role="tab" aria-selected="false", controls="panel-2") People
a(href="#people-panel", role="tabbutton" aria-selected="false") People
li.tab-title(role="presentational")
a(href="#panel-3", role="tab" aria-selected="false", controls="panel-3") Versions
a(href="#versions-panel", role="tabbutton" aria-selected="false") Versions
li.tab-title(role="presentational")
a(href="#panel-4", role="tab" aria-selected="false", controls="panel-4") Specs
a(href="#specs-panel", role="tabbutton" aria-selected="false") Specs
li.tab-title(role="presentational")
a(href="#panel-5", role="tab" aria-selected="false", controls="panel-5") Social Media
a(href="#social-media-panel", role="tabbutton" aria-selected="false") Social Media
.tabs-content
section#panel-1.content.active(role="tabpanel", aria-hidden="false")
section#project-panel.content.active(role="tabpanel", aria-hidden="false")
.small-12.columns
.input-container
label(for="name") Project Name
Expand Down Expand Up @@ -115,63 +115,39 @@ form#doap-form(data-abide="ajax")
option(value="Clojure") Clojure
option(value="Perl") Perl
.row
.small-3.columns.small-centered.end.centered
a.next.button(href="#") Next Page >>
section#panel-2.content(role="tabpanel", aria-hidden="true")
.small-6.columns
.input-container
label First Name
small required
input#first-name(type="text", name="first-name", placeholder="First Name")
.input-container
label Last Name
small required
input#last-name(type="text", name="last-name", placeholder="Last Name")
.input-container
label JBoss Community Account
input#community-account(type="text", name="community-account", placeholder="JBoss Community Account Username")
.input-container
label Role within the project (must have at least one Lead)
small required
select#role(name="role")
option(value="") Select one
option(value="lead") Lead
option(value="documenter") Documenter
option(value="tester") Tester
option(value="developer") Developer
option(value="helper") Helper
option(value="translator") Translator
a#addPerson.button(href="#") Add This Person
.small-6.columns
label(for="people-container") People Added
select.people-container#people-container(name="people-container", multiple="")
button#removePerson.button(type="button") Remove
.small-6.small-offset-5.columns.end
a.next.button(href="#people-panel", role="tabbutton") Next Page >>
section#people-panel.content(role="tabpanel", aria-hidden="true")
include people.jade
.row
.small-3.columns.small-centered.end.centered
a.next.button(href="#") Next Page >>
section#panel-3.content(role="tabpanel", aria-hidden="true")
.small-6.small-offset-5.columns.end
a.next.button(href="#versions-panel", role="tabbutton") Next Page >>
section#versions-panel.content(role="tabpanel", aria-hidden="true")
.small-12.columns
#insert-version-container.container
.row
a#addVersion.button(href="#") Add Another Version
p
| Use this page to provide details of recent releases. There's no need to provide every single release for the project. For example, you could provide the latest GA release, the latest early-access release from an upcoming GA release and maybe the latest GA release that is available in a current product. If don't have any recent releases, or do not wish to add releases, there is nothing to fill out.
include versions.jade
.row
.small-3.columns.small-centered.end.centered
a.next.button(href="#") Next Page >>
section#panel-4.content(role="tabpanel", aria-hidden="true")
.small-6.small-offset-5.columns.end
a.next.button(href="#specs-panel", role="tabbutton") Next Page >>
section#specs-panel.content(role="tabpanel", aria-hidden="true")
.small-12.columns
#insert-spec-container.container
.row
a#addSpec.button(href="#") Add Another Spec
p
| Use this page to provide details of specifications the project implements or uses. For example, a JSR number if the project implements it, or an OSIS or IEEE specification used in the project. If don't have any specifications being used or implemented, or do not wish to add them, there is nothing to fill out.
include specs.jade
.row
.small-3.columns.small-centered.end.centered
a.next.button(href="#") Next Page >>
section#panel-5.content(role="tabpanel", aria-hidden="true")
.small-6.small-offset-5.columns.end
a.next.button(href="#social-media-panel", role="tabbutton") Next Page >>
section#social-media-panel.content(role="tabpanel", aria-hidden="true")
.small-12.columns
#insert-account-container.container
.row
a#addOnlineAccount.button(herf="#") Add Another Online Account
p
| Use this page to add any social media services your project uses. If your project doesn't use social media, or you do not wish to add them, there is nothing to fill out.
include accounts.jade
.row
.small-3.columns.small-centered.end.centered
.small-5.small-offset-5.columns.end
button#submit-button.button(type="submit") Generate DOAP
#doap-modal.reveal-modal(data-reveal="")
a#download-button.button(href="#") Download
Expand Down
28 changes: 28 additions & 0 deletions src/partials/people.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.small-6.columns
.input-container
label First Name
small required
input#first-name(type="text", name="first-name", placeholder="First Name")
.input-container
label Last Name
small required
input#last-name(type="text", name="last-name", placeholder="Last Name")
.input-container
label JBoss Community Account
input#community-account(type="text", name="community-account", placeholder="JBoss Community Account Username")
.input-container
label Role within the project (must have at least one Lead)
small required
select#role(name="role")
option(value="") Select one
option(value="lead") Lead
option(value="documenter") Documenter
option(value="tester") Tester
option(value="developer") Developer
option(value="helper") Helper
option(value="translator") Translator
a#addPerson.add.button(href="#") Add This Person
.small-6.columns
label People Added
select.people-container#people-container(name="people-container", multiple="")
button#removePerson.remove.button(type="button") Remove
14 changes: 14 additions & 0 deletions src/partials/specs.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.small-6.columns
label Name
small required
input#spec-name(type="text", name="specName", placeholder="Spec Name", required="")
label Description
textarea#spec-desc(name="specDecs")
label URL
input#spec-url(type="url", name="seeAlsoURL")
a#addSpec.add.button(href="#") Add This Spec
.small-6.columns
label Specs Added
select.specs-container#specs-container(name="specs-container", multiple="")
button#removeSpec.remove.button(type="button") Remove

18 changes: 18 additions & 0 deletions src/partials/versions.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.small-6.columns
.input-container
label Release Name
input#version-release-name(type="text", name="release-name", placeholder="Name")
.input-container
label Revision Number
small required
input#version-revision(type="text", name="revision", required="")
.input-container
label Created Date
small required
input#version-created(type="date", name="created", required="", placeholder="YYYY-MM-DD")
a#addVersion.add.button(href="#") Add This Version
.small-6.columns
label Versions Added
select.versions-container#versions-container(name="versions-container", multiple="")
button#removeVersion.remove.button(type="button") Remove

Loading