Ooops... I must have gone blind on this one.. And still is.

This is the edit-page where the upload is located:

<edit-page content-size="9">
<body: class="container-fluid"/>
  <aside:>
    <!--The photo form has to be outside of the main form-->
    <attached-prattach-form/>
    <div part="status-box" id="status-box">
      <span id="edit-status" class="alert alert-success pull-right">
    
      </span>
    </div>
  </aside:>
    
  <delete-button: replace/>
   <prepend-content-header:>
    
  </prepend-content-header:>
  
  <form: update="status-box" no-spinner="true">
    <field-list: replace>
      <div class="container row columns tab-pane" id="resumen">
      <div class="span9">
          <field-list: fields="name"/>
        </div>      
        <div class="span9">
          <attached-prattach part="prattach"/>
        </div>
      </div>
    </field-list:>
  </form:>
</edit-page>



<def tag="attached-prattach-form">
  <form action="" class="pull-left" id="image-fileupload">
    <span class="btn btn-mini fileinput-button" 
      style="display:none;">
      <input type="file" id="fileupload-input" 
        name="projectfile[prattach]" multiple="true"
        data-url="&projectfile_path(@projectfile)"/>
    </span>
  </form>
  <div class="progress progress-striped active hide" id="upload-progress">
    <div class="bar" style="width:0%"></div>
  </div>
</def>

<def tag="attached-prattach">
<if test="&this.prattach?">
    <a href="&this.prattach.url(:original)" class="span12">
      <img src="&this.prattach.url(:medium)"/>
    </a>
</if>
<else><image src="missing_medium.png"/></else>
    <a class="btn btn-success" style="margin:5px" href="#" 
      onclick="$('input[type=file]').trigger('click');">
      <i class="icon-plus icon-white"></i>
    </a>
</def>


kl. 22:33:13 UTC+2 tirsdag 23. oktober 2012 skrev Bryan Larsen følgende:
>
> > 
> "/projectfiles/1-freskt?render[0][id]=image&render[0][part_context]=undefined"
>  
>
>
> 'undefined' is probably not a valid part context.  :) 
>
> Can you post your DRYML snippet with the part & form? 
>
> Bryan 
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/KgWBUIpXwJMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to